private void GuardsLBL_Click(object sender, EventArgs e) { GuardsPNL.Show(); ReportPNL.Hide(); GuardsLBL.ForeColor = _dark; ReportLBL.ForeColor = _light; }
private void Sched_DismissGuard_Load(object sender, EventArgs e) { LoadPage(); FadeTMR.Start(); IncidentTypeCMBX.SelectedIndex = 1; GuardsPNL.Show(); ReportPNL.Hide(); GuardsLBL.ForeColor = _dark; ReportLBL.ForeColor = _light; DateEffective.MinDate = DateTime.Now; }
private bool DataValidation() { var ret = true; if (GuardsGRD.RowCount == 0) { RylMessageBox.ShowDialog("There are no guards to be dismissed \nThis request will be canceled", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Error); Close(); GuardsPNL.Show(); ReportPNL.Hide(); GuardsLBL.ForeColor = _dark; ReportLBL.ForeColor = _light; ret = false; } if (EnableIncidentCHKBX.Checked) { if (LocationBX.Text.Equals("")) { ShowToolTipOnBx(LocationTLTP, "Event Location", "Where did this incident happen?", LocationBX); ret = false; } if (DescriptionBX.Text.Equals("")) { ShowToolTipOnBx(DescriptionTLTP, "Event Description", "What happened in this incident?", DescriptionBX); ret = false; } if (!ret) { GuardsPNL.Hide(); ReportPNL.Show(); GuardsLBL.ForeColor = _light; ReportLBL.ForeColor = _dark; } } return(ret); }