private void ToEditTab()
 {
     if (SelectedUser != null)
     {
         var editUserWindow = new EditUser(SelectedUser);
         editUserWindow.Show();
         Application.Current.MainWindow.Close();
     }
     else
     {
         MessageBox.Show("Please select a user");
     }
 }
コード例 #2
0
 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");
     }
 }
コード例 #3
0
        private void EditUser_Click(object sender, EventArgs e)
        {
            EditUser editUser = new EditUser();

            editUser.Show();
        }
コード例 #4
0
        private void btnUserSetting_Click(object sender, EventArgs e)
        {
            EditUser ed = new EditUser();

            ed.Show();
        }
コード例 #5
0
        private void EditMyAccountButton_Click(object sender, EventArgs e)
        {
            EditUser editUser = new EditUser(customer);

            editUser.Show();
        }
コード例 #6
0
        public void EditUserClick(object sender, RoutedEventArgs s)
        {
            var EditUserWindow = new EditUser(db, this);

            EditUserWindow.Show();
        }