예제 #1
0
        private void btnEditN_Click(object sender, RoutedEventArgs e)
        {
            NationDto item = dgNations.SelectedItem as NationDto;

            if (item == null)
            {
                MessageBox.Show("Выберите запись для редактирования", "Редактирование");
                return;
            }

            AddNationWindow window = new AddNationWindow();

            window.Load(item);
            window.ShowDialog();
        }
예제 #2
0
        private void btnAddN_Click()
        {
            AddNationWindow window = new AddNationWindow();

            window.ShowDialog();
        }