private void btnAddEmployer_Click(object sender, RoutedEventArgs e) { AddEmployerWindow window = new AddEmployerWindow(); window.ShowDialog(); btnRefresh_Click(sender, e); }
private void btnEditEmployer_Click(object sender, RoutedEventArgs e) { EmployerDto item = dgEmployer.SelectedItem as EmployerDto; if (item == null) { MessageBox.Show("Выберите запись для редактирования", "Редактирование работодателей"); } AddEmployerWindow window = new AddEmployerWindow(); window.Load(item); window.ShowDialog(); btnRefresh_Click(sender, e); }