Exemplo n.º 1
0
 public static IMainWindow CreateMainWindow(MainWindowClassType classType)
 {
     IMainWindow instance = default(IMainWindow);
     switch (classType)
     {
         case MainWindowClassType.DummyClass:
             instance= new ViewModel();
             break;
         case MainWindowClassType.FunctionalClass:
             instance= new ViewModel();
             break;
         default:
             break;
     }
     return instance;
 }
Exemplo n.º 2
0
        public static IMainWindow CreateMainWindow(MainWindowClassType classType)
        {
            IMainWindow instance = default(IMainWindow);

            switch (classType)
            {
            case MainWindowClassType.DummyClass:
                instance = new ViewModel();
                break;

            case MainWindowClassType.FunctionalClass:
                instance = new ViewModel();
                break;

            default:
                break;
            }
            return(instance);
        }