Пример #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            EmployeeForm form = new EmployeeForm();

            this.Hide();
            form.Show();
        }
Пример #2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            EmployeeViewModel employee = (EmployeeViewModel)EmployeeDG.SelectedItems[0];
            EmployeeForm      EditForm = new EmployeeForm(employee);

            EditForm.Show();
            this.Hide();
        }