Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8031105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:59:01+00:00 2026-06-05T00:59:01+00:00

Currently I’m developing two solutions (first for country A, second for country B), which

  • 0

Currently I’m developing two solutions (first for country A, second for country B), which are very similar. I’m using wpf, c#, mvvm, sql server.

Some of modules are identical in every solution, some of them are partially different (ex. some classes have additional fields or methods), and some are completely different (ex. VAT module). For me, developing completely independent solutions is not the best solution (time cost).

So, I was thinking of creating two solutions (A and B) which will contain only main screen where would I prepare user interface. Then, in third solution (C) I would have project (=modules) and link them from A or B.

If module is identical for both version – no problem. If it is completely different – ok, I must develop it independently. But, the question is how to design modules which are slightly different?

Should I use abstract factory design pattern and put in AbstractProduct everything that is identical, and in ConcreteProducts put additional fields/methods? For WPF forms I can’t use this pattern – I must develop a form for every version.

Thx.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T00:59:03+00:00Added an answer on June 5, 2026 at 12:59 am

    what you really want to use is Dependency injection.

    First you create an Interface then have your concrete impls implement this interface per country.

    interface ISolution
    {
    ....
    }
    
    class CountryA : ISolution{
    ...
    }
    
    
    class CountryB : ISolution{
    ...
    }
    

    Then register these Interface to impl mapping at composition root.

    private static IContainer ConfigureDependencies() {
                return new Container(x =>{
                    x.For<ISolution>().Use<CountryA>();
    
                });
            }
    

    Then you ask the container to give you an instance of ISolution. and it will provide you the correct impl.

    You can do the same for CountryB.

    You can have auto wiring or late binding, something more dynamic. and you can switch impls.

    Take a look at structuremap for examples.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently i'm having trouble using two functions in my -(void)viewDidLoad , both of these
Currently I'm using the Jackson JSON Processor to write preference data and whatnot to
Currently writing a C# application it should do backups using GIT in the background.
Currently using a MySQL database Wanting to insert a new row into a table
Currently using Chrome v19.0.1084.46 (Official Build 135956) beta-m jqGrid 4.3.2 (latest release) The problem
Currently I'm using an ArrayList to store a list of elements, whereby I will
currently I'm developing an app for WP7 but came across a little problem with
Currently my query is very heavy, the table (table A) I need to update
Currently I am using Amazon Cloudfront to service static objects on my ASP.Net MVC3
Currently I have a web service, which loads up any plugins located within its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.