private void btnAddPosition_Click(object sender, RoutedEventArgs e) { AddPositionWindow window = new AddPositionWindow(); window.ShowDialog(); btnRefresh_Click(sender, e); }
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); }