private void HideTooltips() { NameTLTP.Hide(NameBX); LocationTLTP.Hide(LocationStreetNoBX); ManagerTLTP.Hide(ManagerBX); ContactTLTP.Hide(ContactBX); ContactNoTLTP.Hide(ContactNoBX); }
private bool DataVal() { var ret = true; if (NameBX.Text.Equals("") || NameBX.Text.Equals("Name")) { NameTLTP.ToolTipTitle = "Client Name"; NameTLTP.Show("Please enter client name", NameBX); ret = false; } if (BasicPayBX.Value.Equals(00.00)) { BasicPayWarn.ToolTipTitle = "Basic Pay"; BasicPayWarn.Show("Please enter the basic pay for guard officers", BasicPayBX); ret = false; } if (LocationStreetNoBX.Text.Equals("") || LocationStreetNoBX.Text.Equals("No.") || LocationStreetNameBX.Text.Equals("") || LocationStreetNameBX.Text.Equals("Street Name") || LocationCityBX.Text.Equals("") || LocationCityBX.Text.Equals("City") || LocationBrgyBX.Text.Equals("") || LocationBrgyBX.Text.Equals("Brgy")) { LocationTLTP.ToolTipTitle = "Client Location"; LocationTLTP.Show("Please complete all fields", LocationStreetNoBX); ret = false; } if (ManagerBX.Text.Equals("")) { ManagerTLTP.ToolTipTitle = "Client Manager"; ManagerTLTP.Show("Please enter client's manager", ManagerBX); ret = false; } if (ContactBX.Text.Equals("")) { ContactTLTP.ToolTipTitle = "Client Contact Person"; ContactTLTP.Show("Please enter contact person's name", ContactBX); ret = false; } if (ContactNoBX.Text.Equals("")) { ContactNoTLTP.ToolTipTitle = "Contact Person's No"; ContactNoTLTP.Show("Please enter contact person's no", ContactNoBX); ret = false; } if (CertifiersGRD.Rows.Count == 0) { CertifiersTLTP.ToolTipTitle = "Certifiers"; CertifiersTLTP.Show("Please enter at least one certifier", CertifiersGRD); ret = false; } return(ret); }