Esempio n. 1
0
 public void OnWindowClosing(object sender, CancelEventArgs e)
 {
     CameraVM.Dispose();
     SpectrometerVM.Dispose();
     MeasurementVM.Dispose();
     App.Current.Shutdown();
 }
Esempio n. 2
0
        public void OnViewLoaded(object sender, RoutedEventArgs e)
        {
            MainWindow mainWindow = Application.Current.Windows.OfType <MainWindow>().FirstOrDefault(); // how to access usercontrol instance declared in xaml

            XYZMotorVM.SetPointSelectedHandler(ref mainWindow.borderInstance);
            SpectrometerVM.MainWindow_SourceInitialized(mainWindow.MainWin);
            ConnectAll();
        }
Esempio n. 3
0
 private void ConnectAll()
 {
     CameraVM.connectCamera();
     XYZMotorVM.connectMotor();
     SpectrometerVM.connectSpectrum();
 }