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; }
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; } }