private void OpenMainWindow(object sender, RoutedEventArgs e) { var mainViewModel = new MeasureModeViewModel(); var mainWindow = new MeasureModeWindow { DataContext = mainViewModel }; mainWindow.Show(); this.Close(); }
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(); }
public MeasureOnCommand(MeasureModeViewModel vM) { VM = vM; }
public UIElementCollectionHelper(MeasureModeViewModel mmv) { MMV = mmv; }
public DisConnectCommand(MeasureModeViewModel vM) { VM = vM; }