private void bbiChangePassword_ItemClick(object sender, ItemClickEventArgs e) { using (frmChangePassword _frm = new frmChangePassword()) { _frm.ShowDialog(); } }
private void btnChangePassword_Click(object sender, EventArgs e) { frmChangePassword frm = new frmChangePassword(); frm.emp = Global.CURRENT_USER; frm.ShowDialog(); }
protected void updatePassword(String username, String pass, frmChangePassword suspend) { try { conn = new MySqlConnection(this.connection()); conn.Open(); using (command = new MySqlCommand("UPDATE users SET password = @pass WHERE username = @user", conn)) { command.Parameters.AddWithValue("@user", username); command.Parameters.AddWithValue("@pass", pass); bool checkResult = (int)command.ExecuteNonQuery() > 0; if (checkResult == true) { MessageBox.Show("Password change successfully", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); suspend.Hide(); } } conn.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void changeMyPasswordToolStripMenuItem_Click(object sender, EventArgs e) { using (var form = new frmChangePassword(SessionManager.Instance.ActiveUser.userLogin, true, false)) { form.ShowDialog(this); } }
private void BtnChangePassword_ItemClick(object sender, ItemClickEventArgs e) { frmChangePassword fChangePassword = new frmChangePassword(username); fChangePassword.ThemNhatKyHeThong += ThemNhatKy_Main; fChangePassword.ShowDialog(); }
void btnChangePassword_Click(object sender, EventArgs e) { mpnTest.Visible = false; var frm = new frmChangePassword(Utils.CurrentUser.UserName); frm.ShowDialog(); }
private void btnChangePassword_Click_1(object sender, EventArgs e) { frmChangePassword obj = new frmChangePassword(); obj.ShowInTaskbar = false; obj.IconOptions.ShowIcon = false; obj.StartPosition = FormStartPosition.CenterScreen; obj.ShowDialog(); }
private void MenuItem_ItemClick(object sender, ItemClickEventArgs e) { try { string path = e.Item.Tag.ToString(); string formname = e.Item.Caption.ToString(); Thread thread1 = new Thread(new ThreadStart( delegate { InsertOperateLog(formname); } )); thread1.IsBackground = true; thread1.Start(); Form form = null; if (!String.IsNullOrEmpty(formname)) { switch (formname) { case "修改密码": form = new frmChangePassword(); break; case "切换用户": Application.Exit(); StartProcess(Application.StartupPath + "\\WindowsForms.exe", ""); return; case "退出系统": Application.Exit(); return; default: form = ReflectionHelper.CreateInstance <Form>(path, "WindowsForms"); break; } Add_TabPage(form, e.Item.Caption.ToString(), userMenu.Rows[0]["username"].ToString() + "," + userMenu.Rows[0]["rolename"].ToString()); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void optionsToolStripMenuItem_Click(object sender, EventArgs e) { if (frmchangepassword == null) { frmchangepassword = new frmChangePassword(); frmchangepassword.MdiParent = this; frmchangepassword.ClientSize = new System.Drawing.Size(2000, 800); this.WindowState = FormWindowState.Maximized; frmchangepassword.FormBorderStyle = FormBorderStyle.None; frmchangepassword.ControlBox = false; frmchangepassword.MaximizeBox = false; frmchangepassword.MinimizeBox = false; frmchangepassword.ShowIcon = false; frmchangepassword.FormClosed += Frmchangepassword_FormClosed;; frmchangepassword.Dock = DockStyle.Fill; frmchangepassword.Show(); } else { frmchangepassword.Activate(); } }
private void btnChangeSettings_Click_1(object sender, EventArgs e) { var frmChangePassword = new frmChangePassword(); frmChangePassword.ShowDialog(); }
private void changePasswordToolStripMenuItem_Click(object sender, EventArgs e) { frmChangePassword f = new frmChangePassword(); f.Show(); }
public frmMain() { InitializeComponent(); styleManager1.ManagerStyle = eStyle.Metro; styleManager1.MetroColorParameters = MetroColorGeneratorParameters.Default; MainRibbonControl.MdiSystemItemVisible = false; MainRibbonControl.FadeEffect = true; Text = @"Megabyte College Information System"; lblServer.Text = @"Connected to: " + Connection.MyDbCredential.DatabasePath(); lblVersion.Text = @"Version : " + App.CurrentVersion(); mdiTab.Tabs.Clear(); #region Event handler btnBatch.Click += (s, ev) => OpenForm(new SchoolYear.frmBatch(), "Batch Management"); btnCourse.Click += (s, ev) => OpenForm(new SchoolYear.frmCourse(), "Course Management"); btnPayMasterList.Click += (s, ev) => OpenForm(new frmMasterFile(), "Payroll Master List"); btnPayPositions.Click += (s, ev) => OpenForm(new frmPosition(), "Payroll Positions"); btnPayDeductions.Click += (s, ev) => OpenForm(new frmDeduction(), "Payroll Deductions"); //btnPayTax.Click += (s, ev) => OpenForm(new Payroll.frmTaxTable(), "Payroll Tax Table"); btnPaySalarySchedule.Click += (s, ev) => OpenForm(new frmSalarySchedule(), "Payroll Salary Schedule"); btnSms.Click += (s, e) => { using (var f = new frmSMS()) { f.ShowDialog(); } }; //Accounts btnUserAccounts.Click += BtnUserAccounts_Click; btnChangePassword.Click += (s, e) => { Cursor.Current = Cursors.WaitCursor; if (!InputControls.UserCanAccess(this, "ChangePassword")) { return; } using (var f = new frmChangePassword()) { f.ShowDialog(); } }; #endregion btnContextMdiTabs.PopupOpen += (s, e) => CreateContextTabMenu(); // SETTINGS TAB ItemPanelSecurity.Visible = App.CurrentUser.User.RoleClass.Can("SysAdmin"); // Handle User ROLE var canViewPayroll = App.CurrentUser.User.RoleClass.Can("ViewPayrollMenu"); RibbonPayroll.Enabled = canViewPayroll; RibbonPayroll.Visible = canViewPayroll; // Handle Contacts var canViewContacts = App.CurrentUser.User.RoleClass.Can("ViewContactsMenu"); RibbonContacts.Visible = canViewContacts; btnContacts.Enabled = canViewContacts; var canAddContacts = App.CurrentUser.User.RoleClass.Can("AddContacts"); btnCreateContacts.Enabled = canAddContacts; // Handle Employee var canViewEmployee = App.CurrentUser.User.RoleClass.Can("ViewEmployee"); RibbonEmployee.Visible = canViewEmployee; btnEmployee.Enabled = canViewEmployee; //Biometric User var canViewBiometricUser = App.CurrentUser.User.RoleClass.Can("ViewBiometricUser"); RibbonBarBiometric.Visible = canViewBiometricUser; RibbonBarBiometric.Enabled = canViewBiometricUser; // CAN SEND SMS var canSendSms = App.CurrentUser.User.RoleClass.Can("AccessSendSms"); RibbonBarDevices.Visible = canSendSms; RibbonBarDevices.Enabled = canSendSms; //RibbonBar STUDENT var canViewStudentMenu = App.CurrentUser.User.RoleClass.Can("ViewStudentMenu"); RibbonBarStudent.Visible = canViewStudentMenu; RibbonBarStudent.Enabled = canViewStudentMenu; }
private void Frmchangepassword_FormClosed(object sender, FormClosedEventArgs e) { frmchangepassword = null; }
private void menu_Click(object sender, EventArgs e) { int ff = SubMenu.IndexOf(sender, 0, SubMenu.Count); switch (ff) { case 2: this.Visible = false; frmLogin dlg = new frmLogin(false); dlg.ShowDialog(); if (dlg.DialogResult == DialogResult.OK) { for (int i = 0; i < this.MdiChildren.Length; i++) { this.MdiChildren[i].Close(); } Func.RecordSet rs = new Func.RecordSet("Select GROUP_NM,a.GROUP_ID from SYS_USER a,SYS_GROUP b" + " where USER_ID=N'" + PublicFunction.A_UserID + "' and a.GROUP_ID=b.GROUP_ID", PublicFunction.C_con); if (rs.rows > 0) { sta1.Text = PublicFunction.A_UserID + "/" + rs.record(0, 0); PublicFunction.A_Group_ID = rs.record(0, 1); } Init_Menu(); } this.Visible = true; break; case 3: frmChangePassword dlg1 = new frmChangePassword(); dlg1.Tag = ff; dlg1.ShowDialog(); break; case 4: frmSecurity dlgSecurity = new frmSecurity(); Show_Form(dlgSecurity, ff); break; case 5: frmSysMenu SysMenu = new frmSysMenu(); Show_Form(SysMenu, ff); break; case 6: this.Close(); break; case 8: //"EN" //((MenuItem)sender).Checked=true; submnu[8].Checked = true; submnu[9].Checked = false; submnu[10].Checked = false; submnu[58].Checked = false; if (PublicFunction.L_Lag != "EN") { PublicFunction.L_Lag = "EN"; Init_Label(); } break; case 9: //"CH" //((MenuItem)sender).Checked=true; submnu[8].Checked = false; submnu[9].Checked = true; submnu[10].Checked = false; submnu[58].Checked = false; if (PublicFunction.L_Lag != "CH") { PublicFunction.L_Lag = "CH"; Init_Label(); } break; case 10: //VN //((MenuItem)sender).Checked=true; submnu[8].Checked = false; submnu[9].Checked = false; submnu[10].Checked = true; submnu[58].Checked = false; if (PublicFunction.L_Lag != "VN") { PublicFunction.L_Lag = "VN"; Init_Label(); } break; case 58: //TT //((MenuItem)sender).Checked=true; submnu[8].Checked = false; submnu[9].Checked = false; submnu[10].Checked = false; submnu[58].Checked = true; if (PublicFunction.L_Lag != "TT") { PublicFunction.L_Lag = "TT"; Init_Label(); } break; case 12: frmControlTable dlgControlTable = new frmControlTable(); Show_Form(dlgControlTable, ff); break; case 59: frmControlTable1 dlgControlTable1 = new frmControlTable1(); Show_Form(dlgControlTable1, ff); break; case 76: frmControlStateUser ControlStateUser = new frmControlStateUser(); Show_Form(ControlStateUser, ff); break; //************************************************************* case 13: frmTaCompany TaCompany = new frmTaCompany(); Show_Form(TaCompany, ff); break; case 14: frmTaDepartment TaDepartment = new frmTaDepartment(); Show_Form(TaDepartment, ff); break; case 15: frmTaLeave TaLeave = new frmTaLeave(); Show_Form(TaLeave, ff); break; case 16: frmTaCity TaCity = new frmTaCity(); Show_Form(TaCity, ff); break; case 17: frmTaEducation TaEducation = new frmTaEducation(); Show_Form(TaEducation, ff); break; case 18: frmTaProfession TaProfession = new frmTaProfession(); Show_Form(TaProfession, ff); break; case 19: frmTaVacateWay TaVacateWay = new frmTaVacateWay(); Show_Form(TaVacateWay, ff); break; case 20: frmTaPosition TaPosition = new frmTaPosition(); Show_Form(TaPosition, ff); break; case 21: frmTaGroup TaGroup = new frmTaGroup(); Show_Form(TaGroup, ff); break; case 22: frmTaGroupType TaGroupType = new frmTaGroupType(); Show_Form(TaGroupType, ff); break; case 23: frmTaGraduation TaGraduation = new frmTaGraduation(); Show_Form(TaGraduation, ff); break; case 24: frmTaRace TaRace = new frmTaRace(); Show_Form(TaRace, ff); break; case 25: frmTaNationality TaNationality = new frmTaNationality(); Show_Form(TaNationality, ff); break; case 26: frmTaBonusAndFined TaBonusAndFined = new frmTaBonusAndFined(); Show_Form(TaBonusAndFined, ff); break; case 27: frmTaJuryType TaJuryType = new frmTaJuryType(); Show_Form(TaJuryType, ff); break; //Staff case 30: frmTaStaffInfo TaStaffInfo = new frmTaStaffInfo(); Show_Form(TaStaffInfo, ff); break; case 31: frmTaPositionMobilize TaPositionMobilize = new frmTaPositionMobilize(); Show_Form(TaPositionMobilize, ff); break; case 32: frmTaDepartmentSwitch TaDepartmentSwitch = new frmTaDepartmentSwitch(); Show_Form(TaDepartmentSwitch, ff); break; case 33: frmTaChangeCard ChangeCard = new frmTaChangeCard(); Show_Form(ChangeCard, ff); break; case 34: frmTaVacateManager TaVacateManager = new frmTaVacateManager(); Show_Form(TaVacateManager, ff); break; case 35: frmTaRecycleBin TaRecycleBin = new frmTaRecycleBin(); Show_Form(TaRecycleBin, ff); break; case 36: frmTaCardReader TaCardReader = new frmTaCardReader(); Show_Form(TaCardReader, ff); break; case 37: frmTaEducationRecords TaEducationRecords = new frmTaEducationRecords(); Show_Form(TaEducationRecords, ff); break; case 38: frmTaHoliday TaHoliday = new frmTaHoliday(); Show_Form(TaHoliday, ff); break; case 41: // if(PublicFunction.GPS) // { // frmTaDataSwitch TaCardDataSwitch =new frmTaDataSwitch(); // Show_Form(TaDataSwitch ,ff); // } // else // { frmTaCardDataSwitch TaCardDataSwitch = new frmTaCardDataSwitch(); Show_Form(TaCardDataSwitch, ff); // } break; case 45: frmTaRosters TaRosters = new frmTaRosters(); Show_Form(TaRosters, ff); break; case 46: frmTaStaffInfoSearch TaStaffInfoSearch = new frmTaStaffInfoSearch(); Show_Form(TaStaffInfoSearch, ff); break; case 47: frmTaSetting TaSetting = new frmTaSetting(); Show_Form(TaSetting, ff); break; case 48: frmTaMonthSetup TaMonthSetup = new frmTaMonthSetup(); Show_Form(TaMonthSetup, ff); break; case 49: frmTaShiftReset TaShiftReset = new frmTaShiftReset(); Show_Form(TaShiftReset, ff); break; case 50: frmTaCopyShift TaCopyShift = new frmTaCopyShift(); Show_Form(TaCopyShift, ff); break; case 52: frmTaLeaveManager TaLeaveManager = new frmTaLeaveManager(); Show_Form(TaLeaveManager, ff); break; case 53: frmTaOutTripControl TaOutTripControl = new frmTaOutTripControl(); Show_Form(TaOutTripControl, ff); break; case 54: frmTaAnnualLeave TaAnnualLeave = new frmTaAnnualLeave(); Show_Form(TaAnnualLeave, ff); break; case 55: frmTaDailyAttendanceList TaDailyAttendanceList = new frmTaDailyAttendanceList(); Show_Form(TaDailyAttendanceList, ff); break; case 56: frmTaMonthAddUp TaMonthAddUp = new frmTaMonthAddUp(); Show_Form(TaMonthAddUp, ff); break; case 57: frmTaNativePlace TaNativePlace = new frmTaNativePlace(); Show_Form(TaNativePlace, ff); break; case 60: frmTaTransfer TaTransfer = new frmTaTransfer(); Show_Form(TaTransfer, ff); break; case 61: frmTaMonthAddUpCal TaMonthAddUpCal = new frmTaMonthAddUpCal(); Show_Form(TaMonthAddUpCal, ff); break; case 65: frmTaPayItem TaPayItem = new frmTaPayItem(); Show_Form(TaPayItem, ff); break; case 66: frmTaLevel TaLevel = new frmTaLevel(); Show_Form(TaLevel, ff); break; case 67: frmTaTypeShift TaTypeShift = new frmTaTypeShift(); Show_Form(TaTypeShift, ff); break; case 69: frmTaInitATT TaInitATT = new frmTaInitATT(); Show_Form(TaInitATT, ff); break; case 70: frmTaInitMonthAddUp InitMonthAddUp = new frmTaInitMonthAddUp(); Show_Form(InitMonthAddUp, ff); break; case 71: frmTaSalaryLevel TaSalaryLevel = new frmTaSalaryLevel(); Show_Form(TaSalaryLevel, ff); break; case 72: frmTaSalaryInput TaSalaryInput = new frmTaSalaryInput(true); Show_Form(TaSalaryInput, ff); break; case 73: frmTaSalaryFormula TaSalaryFormula = new frmTaSalaryFormula(); Show_Form(TaSalaryFormula, ff); break; case 74: frmTaSalaryInput TaSalaryInput1 = new frmTaSalaryInput(false); Show_Form(TaSalaryInput1, ff); break; case 77: frmTaHRReport TaHRReport = new frmTaHRReport(); Show_Form(TaHRReport, ff); break; case 78: frmTaACCReport TaACCReport = new frmTaACCReport(); Show_Form(TaACCReport, ff); break; case 79: frmTaPayrollCal TaPayrollCal = new frmTaPayrollCal(); Show_Form(TaPayrollCal, ff); break; case 80: frmTaSalary TaSalary = new frmTaSalary(); Show_Form(TaSalary, ff); break; case 81: frmTaLabourContract TaLabourContract = new frmTaLabourContract(); Show_Form(TaLabourContract, ff); break; case 83: frmTaAnnexLabourContract TaAnnexLabourContract = new frmTaAnnexLabourContract(); Show_Form(TaAnnexLabourContract, ff); break; case 84: frmTaATM TaATM = new frmTaATM(); Show_Form(TaATM, ff); break; case 85: frmTaManagerReport TaManagerReport = new frmTaManagerReport(); Show_Form(TaManagerReport, ff); break; case 86: frmTaManternity TaManternity = new frmTaManternity(); Show_Form(TaManternity, ff); break; case 87: frmTaXetHach TaXetHach = new frmTaXetHach(); Show_Form(TaXetHach, ff); break; case 89: frmTaBonusAndFinedManager TaBonusAndFinedManager = new frmTaBonusAndFinedManager(); Show_Form(TaBonusAndFinedManager, ff); break; case 90: frmTaNotesSlip TaNotesSlip = new frmTaNotesSlip(); Show_Form(TaNotesSlip, ff); break; case 91: frmTaAbsentVacate TaAbsentVacate = new frmTaAbsentVacate(); Show_Form(TaAbsentVacate, ff); break; case 92: // frmTaTransferStaff TaTransferStaff =new frmTaTransferStaff(); // Show_Form(TaTransferStaff ,ff); frmTaStaffSalary StaffSalary = new frmTaStaffSalary(); Show_Form(StaffSalary, ff); break; case 93: frmTaInitSalary TaInitSalary = new frmTaInitSalary(); Show_Form(TaInitSalary, ff); break; case 94: frmTaCardData TaCardData = new frmTaCardData(); Show_Form(TaCardData, ff); break; case 95: frmTaTAPrintOut TaTAPrintOut = new frmTaTAPrintOut(); Show_Form(TaTAPrintOut, ff); break; case 98: frmTaCardComparison TaCardComparison = new frmTaCardComparison(); Show_Form(TaCardComparison, ff); break; case 99: frmTaSeachReport TaSeachReport = new frmTaSeachReport(); Show_Form(TaSeachReport, ff); break; case 100: frmTaComparison TaComparison = new frmTaComparison(); Show_Form(TaComparison, ff); break; case 103: frmTaSection TaSection = new frmTaSection(); Show_Form(TaSection, ff); break; case 104: frmTaStyle TaStyle = new frmTaStyle(); Show_Form(TaStyle, ff); break; case 105: frmTaTransferToGPS TaTransferToGPS = new frmTaTransferToGPS(); Show_Form(TaTransferToGPS, ff); break; } }
private void btnChange_Click(object sender, EventArgs e) { frmChangePassword frmChange = new frmChangePassword(); frmChange.Show(); }
/// <summary> /// Event raise when user click change password button /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnChangePassword_Click(object sender, EventArgs e) { //open form change password frmChangePassword = new frmChangePassword(); frmChangePassword.ShowDialog(); }
private void changeMyPasswordToolStripMenuItem_Click(object sender, EventArgs e) { using (var form = new frmChangePassword(SessionManager.Instance.ActiveUser.userLogin, true, false)) { form.ShowDialog(this); } }
private void tbtDelete_Click(object sender, EventArgs e) { frmChangePassword frm = new frmChangePassword(nhanVien); frm.Show(); }
private void btnChangePassWord_ItemClick(object sender, ItemClickEventArgs e) { frmChangePassword Change = new frmChangePassword(); Change.ShowDialog(); }
private void btnChangePassword_Click(object sender, EventArgs e) { var dialog = new frmChangePassword(_selectedUser.Id); dialog.ShowDialog(); }
//button đổi mật khẩu private void btnChangePassword_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmChangePassword fChangePassword = new frmChangePassword(username); fChangePassword.ShowDialog(); }
private void btn1_Click(object sender, EventArgs e) { Form frmObj = null; Form open = null; SettingsSP spSettings = new SettingsSP(); try { string str = ((Button)sender).Text; btnFocus.Focus(); switch (str) { case "Contra Voucher": formMDI.MDIObj.ContraVoucherClick(); break; case "Payment Voucher": formMDI.MDIObj.PaymentVoucherClick(); break; case "Receipt Voucher": formMDI.MDIObj.ReceiptVoucherClick(); break; case "Journal Voucher": formMDI.MDIObj.JournalVoucherClick(); break; case "Sales Invoice": formMDI.MDIObj.SalesInvoiceClick(); break; case "Purchase Invoice": formMDI.MDIObj.PurchaseInvoiceClick(); break; case "POS": formMDI.MDIObj.POSClick(); break; case "PDC Payable": formMDI.MDIObj.PDCPayableClick(); break; case "PDC Receivable": formMDI.MDIObj.PDCReceivableClick(); break; case "PDC Clearance": formMDI.MDIObj.PDCClearenceClick(); break; case "Bank Reconciliation": frmObj = new frmBankReconciliation(); open = (Application.OpenForms["frmBankReconciliation"] as frmBankReconciliation); break; case "Purchase Order": formMDI.MDIObj.PurchaseOrderClick(); break; case "Material Reciept": formMDI.MDIObj.MaterialReceiptClick(); break; case "Rejection Out": formMDI.MDIObj.RejectionOutClick(); break; case "Purchase Return": formMDI.MDIObj.PurchaseReturnClick(); break; case "Sales Quotation": formMDI.MDIObj.SalesQuotationClick(); break; case "Sales Order": formMDI.MDIObj.SalesOrderClick(); break; case "Delivery Note": formMDI.MDIObj.DeliveryNoteClick(); break; case "Rejection In": formMDI.MDIObj.RejectionInClick(); break; case "Sales Return": formMDI.MDIObj.SalesReturnClick(); break; case "Physical Stock": formMDI.MDIObj.PhysicalStockClick(); break; case "Service Voucher": formMDI.MDIObj.ServiceVoucherClick(); break; case "Credit Note": formMDI.MDIObj.CreditNoteClick(); break; case "Debit Note": formMDI.MDIObj.DebitNoteClick(); break; case "Stock Journal": formMDI.MDIObj.StockJournalClick(); break; case "Bill Allocation": frmObj = new frmBillallocation(); open = (Application.OpenForms["frmBillallocation"] as frmBillallocation); break; case "Account Group": frmObj = new frmAccountGroup(); open = (Application.OpenForms["frmAccountGroup"] as frmAccountGroup); break; case "Account Ledger": frmObj = new frmAccountLedger(); open = (Application.OpenForms["frmAccountLedger"] as frmAccountLedger); break; case "Multiple Account Ledgers": frmObj = new frmmultipleAccountLedger(); open = (Application.OpenForms["frmmultipleAccountLedger"] as frmmultipleAccountLedger); break; case "Product Group": frmObj = new frmProductGroup(); open = (Application.OpenForms["frmProductGroup"] as frmProductGroup); break; case "Product Creation": frmObj = new frmProductCreation(); open = (Application.OpenForms["frmProductCreation"] as frmProductCreation); break; case "Multiple Product Creation": frmObj = new frmMultipleProductCreation(); open = (Application.OpenForms["frmMultipleProductCreation"] as frmMultipleProductCreation); break; case "Batch": if (spSettings.SettingsStatusCheck("AllowBatch") == "Yes") { frmObj = new frmBatch(); open = (Application.OpenForms["frmBatch"] as frmBatch); } break; case "Brand": frmObj = new frmBrand(); open = (Application.OpenForms["frmBrand"] as frmBrand); break; case "Model Number": if (spSettings.SettingsStatusCheck("AllowModelNo") == "Yes") { frmObj = new frmModalNo(); open = (Application.OpenForms["frmModalNo"] as frmModalNo); } break; case "Size": if (spSettings.SettingsStatusCheck("AllowSize") == "Yes") { frmObj = new frmSize(); open = (Application.OpenForms["frmSize"] as frmSize); } break; case "Unit": frmObj = new frmUnit(); open = (Application.OpenForms["frmUnit"] as frmUnit); break; case "Godown": if (spSettings.SettingsStatusCheck("AllowGodown") == "Yes") { frmObj = new frmGodown(); open = (Application.OpenForms["frmGodown"] as frmGodown); } break; case "Rack": if (spSettings.SettingsStatusCheck("AllowRack") == "Yes") { frmObj = new frmRack(); open = (Application.OpenForms["frmRack"] as frmRack); } break; case "Pricing Level": frmObj = new frmPricingLevel(); open = (Application.OpenForms["frmPricingLevel"] as frmPricingLevel); break; case "Price List": frmObj = new frmPriceList(); open = (Application.OpenForms["frmPriceList"] as frmPriceList); break; case "Standard Rate": frmObj = new frmStandardRate(); open = (Application.OpenForms["frmStandardRate"] as frmStandardRate); break; case "Tax": if (spSettings.SettingsStatusCheck("Tax") == "Yes") { frmObj = new frmTax(); open = (Application.OpenForms["frmTax"] as frmTax); } break; case "Currency": if (spSettings.SettingsStatusCheck("MultiCurrency") == "Yes") { frmObj = new frmCurrency(); open = (Application.OpenForms["frmCurrency"] as frmCurrency); } break; case "Exchange Rate": frmObj = new frmExchangeRate(); open = (Application.OpenForms["frmExchangeRate"] as frmExchangeRate); break; case "Service Category": frmObj = new frmServiceCategory(); open = (Application.OpenForms["frmServiceCategory"] as frmServiceCategory); break; case "Services": frmObj = new frmServices(); open = (Application.OpenForms["frmServices"] as frmServices); break; case "Voucher Type": frmObj = new frmVoucherType(); open = (Application.OpenForms["frmVoucherType"] as frmVoucherType); break; case "Area": frmObj = new frmArea(); open = (Application.OpenForms["frmArea"] as frmArea); break; case "Route": frmObj = new frmRoute(); open = (Application.OpenForms["frmRoute"] as frmRoute); break; case "Counter": frmObj = new frmCounter(); open = (Application.OpenForms["frmCounter"] as frmCounter); break; case "Product Register": frmObj = new frmProductRegister(); open = (Application.OpenForms["frmProductRegister"] as frmProductRegister); break; case "Salesman": frmObj = new frmSalesman(); open = (Application.OpenForms["frmSalesman"] as frmSalesman); break; case "Contra Register": frmObj = new frmContraRegister(); open = (Application.OpenForms["frmContraRegister"] as frmContraRegister); break; case "Payment Register": frmObj = new frmPaymentRegister(); open = (Application.OpenForms["frmPaymentRegister"] as frmPaymentRegister); break; case "Receipt Register": frmObj = new frmReceiptRegister(); open = (Application.OpenForms["frmReceiptRegister"] as frmReceiptRegister); break; case "Journal Register": frmObj = new frmJournalRegister(); open = (Application.OpenForms["frmJournalRegister"] as frmJournalRegister); break; case "PDC Payable Register": frmObj = new frmPDCPayableRegister(); open = (Application.OpenForms["frmPDCPayableRegister"] as frmPDCPayableRegister); break; case "PDC Receivable Register": frmObj = new frmPDCReceivableRegister(); open = (Application.OpenForms["frmPDCReceivableRegister"] as frmPDCReceivableRegister); break; case "PDC Clearance Register": frmObj = new frmPdcClearanceRegister(); open = (Application.OpenForms["frmPdcClearanceRegister"] as frmPdcClearanceRegister); break; case "Purchase Order Register": frmObj = new frmPurchaseOrderRegister(); open = (Application.OpenForms["frmPurchaseOrderRegister"] as frmPurchaseOrderRegister); break; case "Material Receipt Register": frmObj = new frmMaterialReceiptRegister(); open = (Application.OpenForms["frmMaterialReceiptRegister"] as frmMaterialReceiptRegister); break; case "Rejection Out Register": frmObj = new frmRejectionOutRegister(); open = (Application.OpenForms["frmRejectionOutRegister"] as frmRejectionOutRegister); break; case "Purchase Invoice Register": frmObj = new frmPurchaseInvoiceRegister(); open = (Application.OpenForms["frmPurchaseInvoiceRegister"] as frmPurchaseInvoiceRegister); break; case "Purchase Return Register": frmObj = new frmPurchaseReturnRegister(); open = (Application.OpenForms["frmPurchaseReturnRegister"] as frmPurchaseReturnRegister); break; case "Sales Quotation Register": frmObj = new frmSalesQuotationRegister(); open = (Application.OpenForms["frmSalesQuotationRegister"] as frmSalesQuotationRegister); break; case "Sales Order Register": frmObj = new frmSalesOrderRegister(); open = (Application.OpenForms["frmSalesOrderRegister"] as frmSalesOrderRegister); break; case "Delivery Note Register": frmObj = new frmDeliveryNoteRegister(); open = (Application.OpenForms["frmDeliveryNoteRegister"] as frmDeliveryNoteRegister); break; case "Rejection In Register": frmObj = new frmRejectionInRegister(); open = (Application.OpenForms["frmRejectionInRegister"] as frmRejectionInRegister); break; case "Sales Invoice Register": frmObj = new frmSalesInvoiceRegister(); open = (Application.OpenForms["frmSalesInvoiceRegister"] as frmSalesInvoiceRegister); break; case "Sales Return Register": frmObj = new frmSalesReturnRegister(); open = (Application.OpenForms["frmSalesReturnRegister"] as frmSalesReturnRegister); break; case "Physical Stock Register": frmObj = new frmPhysicalStockRegister(); open = (Application.OpenForms["frmPhysicalStockRegister"] as frmPhysicalStockRegister); break; case "Service Voucher Register": frmObj = new frmServiceVoucherRegister(); open = (Application.OpenForms["frmServiceVoucherRegister"] as frmServiceVoucherRegister); break; case "Credit Note Register": frmObj = new frmCreditNoteRegister(); open = (Application.OpenForms["frmCreditNoteRegister"] as frmCreditNoteRegister); break; case "Debit Note Register": frmObj = new frmDebitNoteRegister(); open = (Application.OpenForms["frmDebitNoteRegister"] as frmDebitNoteRegister); break; case "Stock Journal Register": frmObj = new frmStockJournalRegister(); open = (Application.OpenForms["frmStockJournalRegister"] as frmStockJournalRegister); break; case "Designation": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmDesignation(); open = (Application.OpenForms["frmDesignation"] as frmDesignation); } break; case "Pay Head": frmObj = new frmPayHead(); open = (Application.OpenForms["frmPayHead"] as frmPayHead); break; case "Salary Package Creation": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmSalaryPackageCreation(); open = (Application.OpenForms["frmSalaryPackageCreation"] as frmSalaryPackageCreation); } break; case "Salary Package Register": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmSalaryPackageRegister(); open = (Application.OpenForms["frmSalaryPackageRegister"] as frmSalaryPackageRegister); } break; case "Employee Creation": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmEmployeeCreation(); open = (Application.OpenForms["frmEmployeeCreation"] as frmEmployeeCreation); } break; case "Employee Register": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmEmployeeRegister(); open = (Application.OpenForms["frmEmployeeRegister"] as frmEmployeeRegister); } break; case "Holiday Settings": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmHolydaySettings(); open = (Application.OpenForms["frmHolydaySettings"] as frmHolydaySettings); } break; case "Monthly Salary Settings": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmMonthlySalarySettings(); open = (Application.OpenForms["frmMonthlySalarySettings"] as frmMonthlySalarySettings); } break; case "Attendance": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmAttendance(); open = (Application.OpenForms["frmAttendance"] as frmAttendance); } break; case "Advance Payment": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmAdvancePayment(); open = (Application.OpenForms["frmAdvancePayment"] as frmAdvancePayment); } break; case "Advance Register": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmAdvanceRegister(); open = (Application.OpenForms["frmAdvanceRegister"] as frmAdvanceRegister); } break; case "Bonus Deduction": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmBonusDeduction(); open = (Application.OpenForms["frmBonusDeduction"] as frmBonusDeduction); } break; case "Bonus Deduction Register": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmBonusDeductionRegister(); open = (Application.OpenForms["frmBonusDeductionRegister"] as frmBonusDeductionRegister); } break; case "Monthly Salary Voucher": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmMonthlySalaryVoucher(); open = (Application.OpenForms["frmMonthlySalaryVoucher"] as frmMonthlySalaryVoucher); } break; case "Monthly Salary Register": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmMonthlySalaryRegister(); open = (Application.OpenForms["frmMonthlySalaryRegister"] as frmMonthlySalaryRegister); } break; case "Daily Salary Voucher": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmDailySalaryVoucher(); open = (Application.OpenForms["frmDailySalaryVoucher"] as frmDailySalaryVoucher); } break; case "Daily Salary Register": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmDailySalaryRegister(); open = (Application.OpenForms["frmDailySalaryRegister"] as frmDailySalaryRegister); } break; case "Pay Slip": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmPaySlip(); open = (Application.OpenForms["frmPaySlip"] as frmPaySlip); } break; case "Budget": if (spSettings.SettingsStatusCheck("Budget") == "Yes") { frmObj = new frmBudget(); open = (Application.OpenForms["frmBudget"] as frmBudget); } break; case "Budget Variance": if (spSettings.SettingsStatusCheck("Budget") == "Yes") { frmObj = new frmBudgetVariance(); open = (Application.OpenForms["frmBudgetVariance"] as frmBudgetVariance); } break; case "Change Current Date": frmObj = new frmChangeCurrentDate(); open = (Application.OpenForms["frmChangeCurrentDate"] as frmChangeCurrentDate); break; case "Settings": frmObj = new frmSettings(); open = (Application.OpenForms["frmSettings"] as frmSettings); break; case "Role": frmObj = new frmRole(); open = (Application.OpenForms["frmRole"] as frmRole); break; case "Role Privilege Settings": frmObj = new frmRolePrivilegeSettings(); open = (Application.OpenForms["frmRolePrivilegeSettings"] as frmRolePrivilegeSettings); break; case "User Creation": frmObj = new frmUserCreation(); open = (Application.OpenForms["frmUserCreation"] as frmUserCreation); break; case "Change Password": frmObj = new frmChangePassword(); open = (Application.OpenForms["frmChangePassword"] as frmChangePassword); break; case "New Financial Year": frmObj = new frmNewFinancialYear(); open = (Application.OpenForms["frmNewFinancialYear"] as frmNewFinancialYear); break; case "Change Financial Year": frmObj = new frmChangeFinancialYear(); open = (Application.OpenForms["frmChangeFinancialYear"] as frmChangeFinancialYear); break; case "Barcode Settings": frmObj = new frmBarcodeSettings(); open = (Application.OpenForms["frmBarcodeSettings"] as frmBarcodeSettings); break; case "Barcode Printing": frmObj = new frmBarcodePrinting(); open = (Application.OpenForms["frmBarcodePrinting"] as frmBarcodePrinting); break; case "Suffix Prefix Settings": frmObj = new frmSuffixPrefixSettings(); open = (Application.OpenForms["frmSuffixPrefixSettings"] as frmSuffixPrefixSettings); break; case "Change Product Tax": frmObj = new frmChangeProductTax(); open = (Application.OpenForms["frmChangeProductTax"] as frmChangeProductTax); break; case "Product Search": frmObj = new frmProductSearch(); open = (Application.OpenForms["frmProductSearch"] as frmProductSearch); break; case "Voucher Search": frmObj = new frmVoucherSearch(); open = (Application.OpenForms["frmVoucherSearch"] as frmVoucherSearch); break; case "Voucher Wise Product Search": frmObj = new frmVoucherWiseProductSearch(); open = (Application.OpenForms["frmVoucherWiseProductSearch"] as frmVoucherWiseProductSearch); break; case "Personal Reminder": frmObj = new frmPersonalReminder(); open = (Application.OpenForms["frmPersonalReminder"] as frmPersonalReminder); break; case "Overdue Purchase Order": frmObj = new frmOverduePurchaseOrder(); open = (Application.OpenForms["frmOverduePurchaseOrder"] as frmOverduePurchaseOrder); break; case "Overdue Sales Order": frmObj = new frmOverdueSalesOrder(); open = (Application.OpenForms["frmOverdueSalesOrder"] as frmOverdueSalesOrder); break; case "Short Expiry": frmObj = new frmShortExpiry(); open = (Application.OpenForms["frmShortExpiry"] as frmShortExpiry); break; case "Stock": frmObj = new frmStock(); open = (Application.OpenForms["frmStock"] as frmStock); break; case "Trial Balance": frmObj = new frmTrialBalance(); open = (Application.OpenForms["frmTrialBalance"] as frmTrialBalance); break; case "Balance Sheet": frmObj = new frmBalanceSheet(); open = (Application.OpenForms["frmBalanceSheet"] as frmBalanceSheet); break; case "Profit and Loss": frmObj = new frmProfitAndLoss(); open = (Application.OpenForms["frmProfitAndLoss"] as frmProfitAndLoss); break; case "Cash Flow": frmObj = new frmCashFlow(); open = (Application.OpenForms["frmCashFlow"] as frmCashFlow); break; case "Fund Flow": frmObj = new frmFundFlow(); open = (Application.OpenForms["frmFundFlow"] as frmFundFlow); break; case "Chart of Account": frmObj = new frmChartOfAccount(); open = (Application.OpenForms["frmChartOfAccount"] as frmChartOfAccount); break; case "Contra Report": frmObj = new frmContraReport(); open = (Application.OpenForms["frmContraReport"] as frmContraReport); break; case "Payment Report": frmObj = new frmPaymentReport(); open = (Application.OpenForms["frmPaymentReport"] as frmPaymentReport); break; case "Receipt Report": frmObj = new frmReceiptReport(); open = (Application.OpenForms["frmReceiptReport"] as frmReceiptReport); break; case "Journal Report": frmObj = new frmJournalReport(); open = (Application.OpenForms["frmJournalReport"] as frmJournalReport); break; case "PDC Payable Report": frmObj = new frmPDCPayableReport(); open = (Application.OpenForms["frmPDCPayableReport"] as frmPDCPayableReport); break; case "PDC Receivable Report": frmObj = new frmPDCRecievableReport(); open = (Application.OpenForms["frmPDCRecievableReport"] as frmPDCRecievableReport); break; case "PDC Clearance Report": frmObj = new frmPDCClearanceReport(); open = (Application.OpenForms["frmPDCClearanceReport"] as frmPDCClearanceReport); break; case "Purchase Order Report": frmObj = new frmPurchaseOrderReport(); open = (Application.OpenForms["frmPurchaseOrderReport"] as frmPurchaseOrderReport); break; case "Material Receipt Report": frmObj = new frmMaterialReceiptReport(); open = (Application.OpenForms["frmMaterialReceiptReport"] as frmMaterialReceiptReport); break; case "Rejection Out Report": frmObj = new frmRejectionOutReport(); open = (Application.OpenForms["frmRejectionOutReport"] as frmRejectionOutReport); break; case "Purchase Invoice Report": frmObj = new frmPurchaseReport(); open = (Application.OpenForms["frmPurchaseReport"] as frmPurchaseReport); break; case "Purchase Return Report": frmObj = new frmPurchaseReturnReport(); open = (Application.OpenForms["frmPurchaseReturnReport"] as frmPurchaseReturnReport); break; case "Sales Quotation Report": frmObj = new frmSalesQuotationReport(); open = (Application.OpenForms["frmSalesQuotationReport"] as frmSalesQuotationReport); break; case "Sales Order Report": frmObj = new frmSalesOrderReport(); open = (Application.OpenForms["frmSalesOrderReport"] as frmSalesOrderReport); break; case "Delivery Note Report": frmObj = new frmDeliveryNoteReport(); open = (Application.OpenForms["frmDeliveryNoteReport"] as frmDeliveryNoteReport); break; case "Rejection In Report": frmObj = new frmRejectionInReport(); open = (Application.OpenForms["frmRejectionInReport"] as frmRejectionInReport); break; case "Sales Invoice Report": frmObj = new frmSalesReport(); open = (Application.OpenForms["frmSalesReport"] as frmSalesReport); break; case "Sales Return Report": frmObj = new frmSalesReturnReport(); open = (Application.OpenForms["frmSalesReturnReport"] as frmSalesReturnReport); break; case "Physical Stock Report": frmObj = new frmPhysicalStockReport(); open = (Application.OpenForms["frmPhysicalStockReport"] as frmPhysicalStockReport); break; case "Service Report": frmObj = new frmServiceReport(); open = (Application.OpenForms["frmServiceReport"] as frmServiceReport); break; case "Credit Note Report": frmObj = new frmCreditNoteReport(); open = (Application.OpenForms["frmCreditNoteReport"] as frmCreditNoteReport); break; case "Debit Note Report": frmObj = new frmDebitNoteReport(); open = (Application.OpenForms["frmDebitNoteReport"] as frmDebitNoteReport); break; case "Stock Journal Report": frmObj = new frmStockJournelReport(); open = (Application.OpenForms["frmStockJournelReport"] as frmStockJournelReport); break; case "Employee Report": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmEmployeeReport(); open = (Application.OpenForms["frmEmployeeReport"] as frmEmployeeReport); } break; case "Daily Attendance Report": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmDailyAttendanceReport(); open = (Application.OpenForms["frmDailyAttendanceReport"] as frmDailyAttendanceReport); } break; case "Monthly Attendance Report": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmMonthlyAttendanceReport(); open = (Application.OpenForms["frmMonthlyAttendanceReport"] as frmMonthlyAttendanceReport); } break; case "Daily Salary Report": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmDailySalaryReport(); open = (Application.OpenForms["frmDailySalaryReport"] as frmDailySalaryReport); } break; case "Monthly Salary Report": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmMonthlySalaryReport(); open = (Application.OpenForms["frmMonthlySalaryReport"] as frmMonthlySalaryReport); } break; case "Payhead Report": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmPayHeadReport(); open = (Application.OpenForms["frmPayHeadReport"] as frmPayHeadReport); } break; case "Salary Package Report": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmSalaryPackageReport(); open = (Application.OpenForms["frmSalaryPackageReport"] as frmSalaryPackageReport); } break; case "Advance Payment Report": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmAdvancePaymentReport(); open = (Application.OpenForms["frmAdvancePaymentReport"] as frmAdvancePaymentReport); } break; case "Bonus Deduction Report": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmBonusDeductionReport(); open = (Application.OpenForms["frmBonusDeductionReport"] as frmBonusDeductionReport); } break; case "Employee Address Book Report": if (spSettings.SettingsStatusCheck("Payroll") == "Yes") { frmObj = new frmEmployeeAddressBook(); open = (Application.OpenForms["frmEmployeeAddressBook"] as frmEmployeeAddressBook); } break; case "Day Book": frmObj = new frmDayBook(); open = (Application.OpenForms["frmDayBook"] as frmDayBook); break; case "Cash/Bank Book": frmObj = new frmCashBankBookReport(); open = (Application.OpenForms["frmCashBankBookReport"] as frmCashBankBookReport); break; case "Account Groupwise Report": frmObj = new frmAccountGroupwiseReport(); open = (Application.OpenForms["frmAccountGroupwiseReport"] as frmAccountGroupwiseReport); break; case "Account Ledger Report": frmObj = new frmAccountLedgerReport(); open = (Application.OpenForms["frmAccountLedgerReport"] as frmAccountLedgerReport); break; case "Outstanding Report": frmObj = new frmOutstandingReport(); open = (Application.OpenForms["frmOutstandingReport"] as frmOutstandingReport); break; case "Ageing Report": frmObj = new frmAgeingReport(); open = (Application.OpenForms["frmAgeingReport"] as frmAgeingReport); break; case "Party's Address Book": frmObj = new frmPartyAddressBook(); open = (Application.OpenForms["frmPartyAddressBook"] as frmPartyAddressBook); break; case "Stock Report": frmObj = new frmStockReport(); open = (Application.OpenForms["frmStockReport"] as frmStockReport); break; case "Short Expiry Report": frmObj = new frmShortExpiryReport(); open = (Application.OpenForms["frmShortExpiryReport"] as frmShortExpiryReport); break; case "Product Statistics": frmObj = new frmProductStatistics(); open = (Application.OpenForms["frmProductStatistics"] as frmProductStatistics); break; case "Price List Report": frmObj = new frmPriceListReport(); open = (Application.OpenForms["frmPriceListReport"] as frmPriceListReport); break; case "Tax Report": frmObj = new frmTaxReport(); open = (Application.OpenForms["frmTaxReport"] as frmTaxReport); break; case "VAT Report": frmObj = new frmVatReturnReport(); open = (Application.OpenForms["frmVatReturnReport"] as frmVatReturnReport); break; case "Cheque Report": frmObj = new frmChequeReport(); open = (Application.OpenForms["frmChequeReport"] as frmChequeReport); break; case "Free Sale Report": frmObj = new frmFreeSaleReport(); open = (Application.OpenForms["frmFreeSaleReport"] as frmFreeSaleReport); break; case "Product Vs Batch Report": frmObj = new frmProductVsBatchReport(); open = (Application.OpenForms["frmProductVsBatchReport"] as frmProductVsBatchReport); break; case "Customer": frmObj = new frmCustomer(); open = (Application.OpenForms["frmCustomer"] as frmCustomer); break; case "Supplier": frmObj = new frmSupplier(); open = (Application.OpenForms["frmSupplier"] as frmSupplier); break; } if (frmObj != null) { if (open == null) { frmObj.MdiParent = formMDI.MDIObj; frmObj.Show(); } else { open.Activate(); if (open.WindowState == FormWindowState.Minimized) { open.WindowState = FormWindowState.Normal; } } } } catch (Exception ex) { MessageBox.Show("QL:4" + ex.Message, "Openmiracle", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } }
public void updPassword(String username, String password, frmChangePassword suspend) { this.updatePassword(username, password, suspend); }
private void btnChangePass_Click(object sender, EventArgs e) { frmChangePassword changePassword = new frmChangePassword(userCurrent); changePassword.ShowDialog(); }
private void changePasswordToolStripMenuItem1_Click(object sender, EventArgs e) { frmChangePassword frm = new frmChangePassword(); frm.ShowDialog(); }
private void picPassWord_Click(object sender, EventArgs e) { frmChangePassword frmChangePassword = new frmChangePassword(); frmChangePassword.Show(); }
private void btnChangePassword_Click(object sender, EventArgs e) { frmChangePassword cps = new frmChangePassword(); cps.ShowDialog(); }