Пример #1
0
 public MainVM(IServiceFactory serviceFactory)
 {
     _ServiceFactory  = serviceFactory;
     MainVM._Instance = this;
     _MainModel       = new Model.MainModel();
     Status           = "Disconnected";
 }
Пример #2
0
 public MainVM(IServiceFactory serviceFactory)
 {
     _ServiceFactory = serviceFactory;
     MainVM._Instance = this;
     _MainModel = new Model.MainModel();
     Status = "Disconnected";
 }
Пример #3
0
 protected override void OnStartup(StartupEventArgs e)
 {
     base.OnStartup(e);
     MainWindow window = new MainWindow();
     window.Closing += new System.ComponentModel.CancelEventHandler(window_Closing);
     AppServiceFactory serviceFactory = new AppServiceFactory();
     _MainVM = new MainVM(serviceFactory);
     window.DataContext = _MainVM;
     window.Show();
 }