private void Button_Click(object sender, RoutedEventArgs e)
        {
            EditWindow ew = new EditWindow(colD);

            ew.Owner = this;
            ew.Show();
        }
Exemple #2
0
        private void ButtonAdd_Click(object sender, RoutedEventArgs e)
        {
            EditWindow ed = new EditWindow();

            ed.Show();
            Close();
        }
Exemple #3
0
        private void ButtonEdit_Click(object sender, RoutedEventArgs e)
        {
            Student st = StudentsDataGrid.SelectedItem as Student;

            if (st != null)
            {
                EditWindow ed = new EditWindow(st);
                ed.Show();
                Close();
            }
        }