private void buttonModify_Click(object sender, RoutedEventArgs e) { foreach (PersonBasicInfo tempInfo in infoList) { if (tempInfo.ISCHECKED == true) { PersonInfoDialog dialog = new PlanDatabase.PersonInfoDialog(tempInfo, false); dialog.Closed += Dialog_Closed; dialog.Show(); } } }
public void dataGridTemplate_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (e.LeftButton == MouseButtonState.Pressed) { DataGridRow dgr = DataGridRow.GetRowContainingElement(e.OriginalSource as FrameworkElement); if (dgr != null) { PersonBasicInfo personBasicInfo = dgr.DataContext as PersonBasicInfo; if (personBasicInfo != null) { PersonInfoDialog dialog = new PlanDatabase.PersonInfoDialog(personBasicInfo, true); dialog.Show(); } } } }