Beispiel #1
0
        private bool SaveRecord()
        {
            txtCompanyVAT.BackColor = Color.White;

            if (CountryID == "117")
            {
                if (!IsraeliID.IsValidID(txtCompanyVAT.Text))
                {
                    txtCompanyVAT.BackColor = Color.Pink;
                    return(false);
                }
            }

            dblayer.Current_Company_Info = Company_Info;
            if (edit_company != null)
            {
                dblayer.UpdateCompany(GetCompany());
            }
            else
            {
                dblayer.AddCompany(GetCompany());
            }

            return(true);
        }
Beispiel #2
0
 private void txtID_TextChanged(object sender, EventArgs e)
 {
     if (Company_Info.CompanyCountryID == 117)
     {
         txtID.BackColor = IsraeliID.IsValidID(txtID.Text) ? Color.LightGreen : Color.Pink;
     }
 }