示例#1
0
        public static void CheckFailure(object sender, FailuresProcessingEventArgs args)
        {
            if (IsFailureProcessing)
            {
                return;
            }
            if (IsSynchronizing)
            {
                return;
            }
            if (!IsFailureFound)
            {
                return;
            }

            if (DoorFailure.IsDoorFailed)
            {
                DoorFailure.ProcessFailure(sender, args);
            }
            else if (DTMFailure.IsElementModified)
            {
                DTMFailure.ProcessFailure(sender, args);
            }
            //else if (RevisionFailure.IsRevisionModified)
            //{
            //    RevisionFailure.ProcessFailure(sender, args);
            //}
            IsFailureFound = false;
        }
示例#2
0
 public static void CheckFailure(object sender, FailuresProcessingEventArgs args)
 {
     if (IsFailureFound)
     {
         if (DoorFailure.IsDoorFailed)
         {
             DoorFailure.ProcessFailure(sender, args);
         }
         else if (DTMFailure.IsElementModified)
         {
             DTMFailure.ProcessFailure(sender, args);
         }
         else if (RevisionFailure.IsRevisionModified)
         {
             RevisionFailure.ProcessFailure(sender, args);
         }
         IsFailureFound = false;
     }
 }