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

                        dialog.Show();
                    }
                }
            }
        }