private void button1_Click(object sender, EventArgs e) { this.Hide(); MainUI frm = new MainUI(); frm.Show(); }
private void goButton_Click(object sender, EventArgs e) { if (cmbFiscalYear.Text == "") { MessageBox.Show("Please Select Fiscal Year", "error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } GetFiscalId(); GetTransactionDateRange(); phiscalYear = loadFiscalYear; startDate = startDate1; endDate = endDate1; if (fUserType.Trim() == "SuperAdmin") { this.Hide(); MainUI frm = new MainUI(); frm.Show(); } if (fUserType.Trim() == "Admin") { this.Hide(); MainUIForAdmin frm = new MainUIForAdmin(); frm.Show(); } if (fUserType.Trim() == "User") { this.Hide(); MainUIForUser frm = new MainUIForUser(); frm.Show(); } }
private void closeButton_Click(object sender, EventArgs e) { if (lUserType == "SuperAdmin") { this.Hide(); MainUI frm = new MainUI(); frm.Show(); } if (lUserType == "Admin") { this.Hide(); MainUIForAdmin frm1 = new MainUIForAdmin(); frm1.Show(); } }
private void button1_Click(object sender, EventArgs e) { if (mA1UserType == "SuperAdmin") { this.Hide(); MainUI frm = new MainUI(); frm.Show(); } if (mA1UserType == "Admin") { this.Hide(); MainUIForAdmin frm1 = new MainUIForAdmin(); frm1.Show(); } if (mA1UserType == "User") { this.Hide(); MainUIForUser frm2 = new MainUIForUser(); frm2.Show(); } }