Ejemplo n.º 1
0
 public void Dispose()
 {
     if ((this.DlgRevert != null) && !this.DlgRevert.Disposing)
     {
         this.DlgRevert.Dispose();
     }
     if (this.Storage != null)
     {
         this.Storage.Dispose();
         this.Storage = null;
     }
 }
Ejemplo n.º 2
0
 protected void DatasetStorage()
 {
     if (this.Storage == null)
     {
         this.Storage = new Naccs.Core.DataView.Arrange.DatasetStorage();
         this.Storage.EndedEvent += new EventHandler(this.OnStorageEnded);
         this.StorageWatcher = new Stopwatch();
     }
     if (!this.Storage.IsBusy)
     {
         if (string.IsNullOrEmpty(this.RemoveDate))
         {
             this.ResetRemoveDate();
         }
         ULogClass.LogWrite(string.Format("# Will start saving the old messages. [Date/time applied for deletion:{0}]", this.RemoveDate));
         this.StorageWatcher.Start();
         this.Storage.Execute(this.RemoveDate);
     }
 }