Beispiel #1
0
        private void Resetpass_Click(object sender, RoutedEventArgs e)
        {
            Update_Pass _frmUpdate_pass = new Update_Pass();

            _frmUpdate_pass.Owner = Window.GetWindow(this);
            _frmUpdate_pass.ShowDialog();
        }
Beispiel #2
0
        void User_Reset_Pass()
        {
            try
            {
                c_row_select = dgrUser.SelectedIndex;
                User_Info _User_Info = (User_Info)dgrUser.SelectedItem;

                if (_User_Info == null)
                {
                    return;
                }
                Update_Pass _Update_Pass = new Update_Pass();
                _Update_Pass.c_is_reset = 1;

                _Update_Pass.c_User_Info = _User_Info;
                _Update_Pass.Owner       = Window.GetWindow(this);
                _Update_Pass.ShowDialog();

                if (_Update_Pass.c_ok != 0)
                {
                    LoadData();
                }

                DataGridHelper.NVSFocus(dgrUser, c_row_select, 0);
            }
            catch (Exception ex)
            {
                CommonData.log.Error(ex.ToString());
            }
        }