Example #1
0
 internal void _pipesMgr_Removed(IPipes sender, PipeCollectionEventArgs ea)
 {
     if (sender != null)
     {
         for (int i = 0; i < ea.Pipes.Length; i++)
         {
             ea.Pipes[i].StatusChanging -= new StatusChangeEventHandler<IPipe, PipeStatusChangeEventArgs>(pipe_StatusChanging);
             ea.Pipes[i].StatusChanged -= new StatusChangeEventHandler<IPipe, PipeStatusChangeEventArgs>(pipe_StatusChanged);
         }
         if (ea.Pipes.Length > 0)
         {
             PipeInstancesDeletedEventArgs arg = new PipeInstancesDeletedEventArgs(ea.Pipes);
             OnPipeInstancesDeleted(arg);
         }
     }
 }
Example #2
0
 public void PipeInstancesDeleted_DummyHandler(IWorkSpace sender, PipeInstancesDeletedEventArgs ea)
 {
     //throw new Exception("The method or operation is not implemented.");
     PipeInstancesDeleted_TimesHandled++;
 }
Example #3
0
 /// <summary>
 /// Triggers the PipeInstancesDeleted event.
 /// </summary>
 internal virtual void OnPipeInstancesDeleted(PipeInstancesDeletedEventArgs ea)
 {
     if (PipeInstancesDeleted != null)
         PipeInstancesDeleted(this, ea);
 }
Example #4
0
 internal void _wkSpce_PipeInstanceDeleted(IWorkSpace sender, PipeInstancesDeletedEventArgs ea)
 {
     // TODO LOG!!!!! this is where you log element deletion confirmations.
     // Just Log For Now
     //if (sender != null)
     //{
     //    StringBuilder sb = new StringBuilder();
     //    sb.Append("Pipe (models) deleted:");
     //    sb.Append(Environment.NewLine);
     //    for (int i = 0; i < ea.Pipes.Length; i++)
     //    {
     //        sb.Append(string.Format("{0}: [{1}]", ea.Pipes[i].GetType().FullName, ea.Pipes[i].Id));
     //        sb.Append(Environment.NewLine);
     //    }
     //    Debug.Write(sb.ToString());
     //}
 }