private void NewMassTagOpenButton_Click(object sender, RoutedEventArgs e) { var addDataWindow = new AddDataWindow(null) { Owner = Application.Current.MainWindow }; addDataWindow.ShowDialog(); }
private void AddAnalysisJobItemsButton_Click(object sender, RoutedEventArgs e) { var addDataJobWindow = new AddDataWindow(WorkspaceViewModel) { Owner = Application.Current.MainWindow }; addDataJobWindow.ShowDialog(); AnalysisJobDataGrid.SelectedIndex = -1; }
//添加数据 private void btnAddData_Click(object sender, RoutedEventArgs e) { AddDataWindow adddataWindow = new AddDataWindow(); adddataWindow.StandInfo = standManager.SelectedItem; adddataWindow.Owner = Application.Current.MainWindow; bool?result = adddataWindow.ShowDialog(); if (result == true) { ReferenshList(); } }