Exemplo n.º 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            EditWindow ew = new EditWindow(colD);

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

            ed.Show();
            Close();
        }
Exemplo n.º 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();
            }
        }