コード例 #1
0
 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);
 }
コード例 #2
0
 private void connect_Click(object sender, RoutedEventArgs e)
 {
     if (!cb.IsLoaded)
     {
         cb = new ConnectionBox((Application.Current as App).connectNErrorVM);
         cb.Show();
     }
 }
コード例 #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);
 }