Esempio n. 1
0
        private void btnAddPosition_Click(object sender, RoutedEventArgs e)
        {
            AddPositionWindow window = new AddPositionWindow();

            window.ShowDialog();
            btnRefresh_Click(sender, e);
        }
Esempio n. 2
0
        private void btnEditPosition_Click(object sender, RoutedEventArgs e)
        {
            PositionDto item = dgPosition.SelectedItem as PositionDto;

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

            window.Load(item);
            window.ShowDialog();
            btnRefresh_Click(sender, e);
        }