Example #1
0
        private void btnAddEmployer_Click(object sender, RoutedEventArgs e)
        {
            AddEmployerWindow window = new AddEmployerWindow();

            window.ShowDialog();
            btnRefresh_Click(sender, e);
        }
Example #2
0
        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);
        }