private void Button_Click(object sender, RoutedEventArgs e) { EmployeeForm form = new EmployeeForm(); this.Hide(); form.Show(); }
private void Button_Click_1(object sender, RoutedEventArgs e) { EmployeeViewModel employee = (EmployeeViewModel)EmployeeDG.SelectedItems[0]; EmployeeForm EditForm = new EmployeeForm(employee); EditForm.Show(); this.Hide(); }