private bool DataValidation() { var ret = true; if (NeededBX.Value == 0) { NeededTLTP.ToolTipTitle = "Guards Needed"; NeededTLTP.Show("Please specify how many guards the client needs", NeededBX, 2000); ret = false; } if (CheckAdd(AssBrgyBX, AssCityBX, AssStreetNameBX, AssStreetNoBX)) { LocationTLTP.ToolTipTitle = "Location"; LocationTLTP.Show("Please specify or complete the fields", AssStreetNoBX, 200); ret = false; } if (!ret) { RequestPNL.Show(); PickPNL.Hide(); PickLBL.ForeColor = _light; RequestLBL.ForeColor = _dark; } return(ret); }
private void Sched_RequestGuard_Load(object sender, EventArgs e) { LoadClients(); RequestPNL.Hide(); PickPNL.Show(); FadeTMR.Start(); ContractStartDTPKR.MinDate = DateTime.Now; }