コード例 #1
0
        private void OpenMainWindow(object sender, RoutedEventArgs e)
        {
            var mainViewModel = new MeasureModeViewModel();
            var mainWindow    = new MeasureModeWindow {
                DataContext = mainViewModel
            };

            mainWindow.Show();
            this.Close();
        }
コード例 #2
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            //var smainViewModel = new ServiceModeViewModel();
            //var smainWindow = new ServiceModeWindow { DataContext = smainViewModel };
            //smainWindow.Close();

            var mainViewModel = new MeasureModeViewModel();
            var mainWindow    = new MeasureModeWindow {
                DataContext = mainViewModel
            };

            mainWindow.Show();

            // mainWindow.Show();
        }
コード例 #3
0
 public MeasureOnCommand(MeasureModeViewModel vM)
 {
     VM = vM;
 }
コード例 #4
0
 public UIElementCollectionHelper(MeasureModeViewModel mmv)
 {
     MMV = mmv;
 }
コード例 #5
0
 public DisConnectCommand(MeasureModeViewModel vM)
 {
     VM = vM;
 }