//............... //<Payment> #region Payment private void PayCreat() { if (CheckPayLogIn() == true) { HRDOCS.Pay_Creat creat = new Pay_Creat(); if (!this.CheckOpened(creat.Name)) { creat.EmplId = ClassCurUser.LogInEmplId; creat.EmplName = ClassCurUser.LogInEmplName; creat.Key = ClassCurUser.LogInEmplKey; creat.Section = ClassCurUser.LogInSection; creat.StartPosition = FormStartPosition.CenterParent; creat.WindowState = FormWindowState.Maximized; if ((creat.Section == "01") || (creat.EmplId == "M9999999")) { creat.MdiParent = this; creat.Show(); } else { MessageBox.Show("คุณไม่มีสิทธิเข้าถึงหน้านี้ได้"); } } } else { // MessageBox.Show("คุณไม่มีสิทธิเข้าถึงหน้านี้ได้"); return; } }
private void lbl_Creat_Click(object sender, EventArgs e) { Pay_Creat frm = new Pay_Creat(); frm.Show(); }