public static void Remove(Designator_Blueprint designator, bool removeFromDisk) { _blueprints.Remove(designator.Blueprint); _designators.Remove(designator); if (removeFromDisk) { DeleteXML(designator.Blueprint); } }
public static void Add(Blueprint blueprint, bool init = false) { if (!init && !_initialized) { Initialize(); } _blueprints.Add(blueprint); var designator = new Designator_Blueprint(blueprint); _designators.Add(designator); // select the new designator Find.DesignatorManager.Select(designator); }
public static void Remove(Designator_Blueprint designator, bool removeFromDisk) { if (!Instance._initialized) { Initialize(); } Instance._blueprints.Remove(designator.Blueprint); Instance._designators.Remove(designator); if (removeFromDisk) { DeleteXML(designator.Blueprint); } }
public static void Add(Blueprint blueprint) { if (!Instance._initialized) { Initialize(); } Instance._blueprints.Add(blueprint); var designator = new Designator_Blueprint(blueprint); Instance._designators.Add(designator); // select the new designator Find.DesignatorManager.Select(designator); }