Beispiel #1
0
 /// <summary>
 /// Method To Clear All Record
 /// </summary>
 public void ClearAll()
 {
     try
     {
         FirstName = string.Empty;
         LastName  = string.Empty;
         UserCode  = string.Empty;
         RoleList.Clear();
         GetAllRoles(0);
         RecordStatus.Clear();
         GetRecordStatus();
     }
     catch (Exception ex)
     {
         LogHelper.LogErrorToDb(ex);
         bool displayErrorOnUI = false;
         CommonSettings.logger.LogError(this.GetType(), ex);
         if (displayErrorOnUI)
         {
             throw;
         }
     }
     finally
     {
         CommonSettings.logger.LogInfo(typeof(string), string.Format(CultureInfo.InvariantCulture, Resources.loggerMsgEnd, DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name));
     }
 }
 public void Clear()
 {
     Status.Clear();
     RecordStatus.Clear();
     Employer.Clear();
     Course.Clear();
     FundingStatus.Clear();
 }