Exemplo n.º 1
0
        private void AddSubject_Click(object sender, RoutedEventArgs e)
        {
            var vb = new Program.SubjectView();

            if (vb.ShowDialog() == true)
            {
                subjectGrid.Items.Refresh();
                dialogresult = true;
            }
        }
Exemplo n.º 2
0
        private void subjectGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            var vb = new Program.SubjectView((Subject)subjectGrid.SelectedItem);

            if (vb.ShowDialog() == true)
            {
                subjectGrid.Items.Refresh();
                dialogresult = true;
            }
        }