public ErrorsAndConnection()
 {
     InitializeComponent();
     DataContext = (Application.Current as App).connectNErrorVM;
     cb          = new ConnectionBox((Application.Current as App).connectNErrorVM);
     eb          = new ErrorBox((Application.Current as App).connectNErrorVM);
 }
 private void connect_Click(object sender, RoutedEventArgs e)
 {
     if (!cb.IsLoaded)
     {
         cb = new ConnectionBox((Application.Current as App).connectNErrorVM);
         cb.Show();
     }
 }
Esempio n. 3
0
 public MainWindow()
 {
     InitializeComponent();
     DataContext = new
     {
         myMapControl  = (Application.Current as App).MapVM,
         myDashboard   = (Application.Current as App).dashboardVM,
         myConnection  = (Application.Current as App).connectNErrorVM,
         myControllers = (Application.Current as App).controllersVM,
     };
     cb = new ConnectionBox((Application.Current as App).connectNErrorVM);
     eb = new ErrorBox((Application.Current as App).connectNErrorVM);
 }