/// <summary> /// Registers the supplied Instance from the list of Passive instances. /// Thus, the object will not notify changes or store them for undo/redo. /// </summary> public static void RegisterPassiveInstance(IMModelClass Instance) { PassiveInstances.AddNew(Instance); }
/// <summary> /// Indicates whether the specified Instance is registered as Passive. /// Meaning that the object will not notify changes or store them for undo/redo. /// </summary> public static bool IsPassiveInstance(IMModelClass Instance) { return(PassiveInstances.Count > 0 && PassiveInstances.Contains(Instance)); }