public frmProcessing(frmFloor f) { this.components = null; this.IsStoped = false; InitializeComponent(); frmFlorr = f; }
private void btnEatIn_Click(object sender, EventArgs e) { try { Button EatIn = (Button)sender; var menuid = Convert.ToInt32(EatIn.Tag); var departmentid = UserLoginModel.UserLoginInfo.DepartmentID; var shiftid = UserLoginModel.ShiffID; var result = PermissionService.GetPermissionByDepartment(departmentid, menuid); //frmFloor frm = new frmFloor(); //frm.Show(); if (result > 0) { if (shiftid > 0) { frmFloor frmfloor = new frmFloor(); if (Class.CheckFormShowing.FromShowing("frmFloor")) { Application.OpenForms["frmFloor"].Show(); Application.OpenForms["frmFloor"].TopLevel = true; } else { frmfloor.Show(); } } else { frmAgainShift frm = new frmAgainShift(); if (frmOpacity.ShowDialog(this, frm) == System.Windows.Forms.DialogResult.OK) { this.picWarning.Show(); this.lbWarning.Show(); frmFloor frm1 = new frmFloor(); frm1.Show(); } } } else { frmMessager frm = new frmMessager("Messenger", "You can not accept. Please contact admin"); frmOpacity.ShowDialog(this, frm); } } catch (Exception ex) { LogPOS.WriteLog("frmMmain:::::::::::::::::::::::btnEatIn_Click:::::::::::::::::" + ex.Message); } }
private void btnEatIn_Click(object sender, EventArgs e) { try { Button EatIn = (Button)sender; var menuid = Convert.ToInt32(EatIn.Tag); var departmentid = UserLoginModel.UserLoginInfo.DepartmentID; var shiftid = UserLoginModel.ShiffID; var result = PermissionService.GetPermissionByDepartment(departmentid, menuid); //frmFloor frm = new frmFloor(); //frm.Show(); if (result > 0) { if (shiftid > 0) { frmFloor frm = new frmFloor(); frm.Show(); } else { frmAgainShift frm = new frmAgainShift(); if (frmOpacity.ShowDialog(this,frm) == System.Windows.Forms.DialogResult.OK) { this.picWarning.Show(); this.lbWarning.Show(); frmFloor frm1 = new frmFloor(); frm1.Show(); } } } else { frmMessager frm = new frmMessager("Messenger", "You can not accept. Please contact admin"); frmOpacity.ShowDialog(this, frm); } } catch (Exception ex) { LogPOS.WriteLog("frmMmain:::::::::::::::::::::::btnEatIn_Click:::::::::::::::::" + ex.Message); } }