Beispiel #1
0
 public override bool ValidateBeforeSave()
 {
     if (DALObject.GetCompanyCount() >= CommonProperties.LoginInfo.SoftwareSettings.License_NofCompany)
     {
         MessageBox.Show($"Can not add more companies. License was provided for {CommonProperties.LoginInfo.SoftwareSettings.License_NofCompany.ToString()} Companies", "License", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         return(false);
     }
     return(base.ValidateBeforeSave());
 }
Beispiel #2
0
 public int GetCompanyCount(string filter)
 {
     try
     {
         var _filter = GetFieldFiltering(filter);
         return(CompanyDAL.GetCompanyCount(_filter));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }