예제 #1
0
 public static MainControllerFactory ResolveMainControllerFactory()
 {
     if (mainControllerFactory == null)
     {
         mainControllerFactory = new MainControllerFactory(ResolveIMainFactory());
     }
     return(mainControllerFactory);
 }
예제 #2
0
 public MainWindowAdapter(Window window, MainControllerFactory factory) : base(window)
 {
     if (factory == null)
     {
         throw new ArgumentNullException("factory");
     }
     this.viewModelFactory = factory;
 }
예제 #3
0
 public MainWindowAdapter(Window window, MainControllerFactory factory)
     : base(window)
 {
     if (factory == null)
     {
         throw new ArgumentNullException("factory");
     }
     this.viewModelFactory = factory;
 }
예제 #4
0
 public static IWindow ResolveIMainWindow()
 {
     if (mainView == null)
     {
         using (new OperationLogger())
         {
             MainWindow            window  = new MainWindow();
             MainControllerFactory factory = ResolveMainControllerFactory();
             mainView = new MainWindowAdapter(window, factory);
         }
     }
     return(mainView);
 }
예제 #5
0
 public static MainControllerFactory ResolveMainControllerFactory()
 {
     if (mainControllerFactory == null)
     {
         mainControllerFactory = new MainControllerFactory(ResolveIMainFactory());
     }
     return mainControllerFactory;
 }