public static MainControllerFactory ResolveMainControllerFactory() { if (mainControllerFactory == null) { mainControllerFactory = new MainControllerFactory(ResolveIMainFactory()); } return(mainControllerFactory); }
public MainWindowAdapter(Window window, MainControllerFactory factory) : base(window) { if (factory == null) { throw new ArgumentNullException("factory"); } this.viewModelFactory = factory; }
public static IWindow ResolveIMainWindow() { if (mainView == null) { using (new OperationLogger()) { MainWindow window = new MainWindow(); MainControllerFactory factory = ResolveMainControllerFactory(); mainView = new MainWindowAdapter(window, factory); } } return(mainView); }
public static MainControllerFactory ResolveMainControllerFactory() { if (mainControllerFactory == null) { mainControllerFactory = new MainControllerFactory(ResolveIMainFactory()); } return mainControllerFactory; }