private void ToEditTab() { if (SelectedUser != null) { var editUserWindow = new EditUser(SelectedUser); editUserWindow.Show(); Application.Current.MainWindow.Close(); } else { MessageBox.Show("Please select a user"); } }
private void ToEditTab() { if (SelectedUser != null) { var editUserWindow = new EditUser(SelectedUser); var activeWindow = Application.Current.Windows.OfType <Window>().SingleOrDefault(x => x.IsActive); editUserWindow.Show(); activeWindow.Close(); } else { MessageBox.Show("Please select a user"); } }
private void EditUser_Click(object sender, EventArgs e) { EditUser editUser = new EditUser(); editUser.Show(); }
private void btnUserSetting_Click(object sender, EventArgs e) { EditUser ed = new EditUser(); ed.Show(); }
private void EditMyAccountButton_Click(object sender, EventArgs e) { EditUser editUser = new EditUser(customer); editUser.Show(); }
public void EditUserClick(object sender, RoutedEventArgs s) { var EditUserWindow = new EditUser(db, this); EditUserWindow.Show(); }