public static void BulkElementChangeWrapper(Repository rep, IList <string> typesCheck, IList <string> stereotypesCheck, IList <string> stereotypesApply, IList <TvItem> taggedValuesApply, IList <string> propertiesApply) { BulkElementItem bulkElement = new BulkElementItem { Name = "", Description = "", TypesCheck = typesCheck, StereotypesCheck = stereotypesCheck, StereotypesApply = stereotypesApply, TaggedValuesApply = taggedValuesApply, PropertiesApply = propertiesApply }; BulkItemChange.BulkChange(rep, bulkElement); }
/// <summary> /// Wrapper to change Diagram style /// </summary> /// <param name="rep"></param> /// <param name="pos"></param> private static void BulkElementChangeRecursiveWrapper(Repository rep, int pos) { Debug.Assert(DiagramStyle.BulkElementItems != null, "DiagramStyle.BulkElementItems != null"); if (DiagramStyle.BulkElementItems == null && DiagramStyle.BulkElementItems.Count <= pos) { MessageBox.Show($"Element number(rel 1): {pos+1} missing", $"No Bulk Element style in 'Settings.json' found"); return; } BulkElementItem bulkElement = DiagramStyle.BulkElementItems[pos]; BulkItemChange.BulkChangeRecursive(rep, bulkElement); }