예제 #1
0
 protected override void bw_Status_DoWork(object sender, DoWorkEventArgs e)
 {
     SA_ProviderStatus saProviderStatus = new SA_ProviderStatus();
       try
       {
     saProviderStatus.TerseStatus = ProviderStatus.Error;
     if (File.Exists(this.FilePath))
     {
       if (this.Content != null)
       {
     if (this.Content.Rows.Count > 0)
     {
       saProviderStatus.TerseStatus = ProviderStatus.Ready;
       saProviderStatus.VerboseStatus = string.Format("{0} Klar \r\n {1} Jobs klar ", (object) this.filePath, (object) this.Content.Rows.Count);
     }
     else
       saProviderStatus.VerboseStatus = string.Format("{0} Kan ikke læses eller er tom \r\n ", (object) this.filePath, (object) this.Content.Rows.Count);
       }
     }
     else
     {
       saProviderStatus.VerboseStatus = string.Format("{0} Kan ikke findes \r\n ", (object) this.filePath, (object) this.Content.Rows.Count);
       saProviderStatus.TerseStatus = ProviderStatus.Unavailable;
     }
       }
       catch (Exception ex)
       {
     saProviderStatus.TerseStatus = ProviderStatus.Error;
     saProviderStatus.VerboseStatus = string.Format("{0} Kan ikke tilgås \r\n Fejl: {1}", (object) this.filePath, (object) e.ToString());
       }
       e.Result = (object) saProviderStatus;
 }
예제 #2
0
 public SA_ProviderStatus(SA_ProviderStatus j)
     : base((SA_Status) j)
 {
 }