public static bool CreateNodeHandler(CreateTagFormData data) { CreateNodeWindowController form = new CreateNodeWindowController() { TagType = data.TagType, HasName = data.HasName, }; form.InvalidNames.AddRange(data.RestrictedNames); if (RunWindow(form) == ModalResult.OK) { data.TagNode = form.TagNode; data.TagName = form.TagName; return(true); } else { return(false); } }
public static bool CreateNodeHandler (CreateTagFormData data) { CreateNodeWindowController form = new CreateNodeWindowController () { TagType = data.TagType, HasName = data.HasName, }; form.InvalidNames.AddRange (data.RestrictedNames); if (RunWindow (form) == ModalResult.OK) { data.TagNode = form.TagNode; data.TagName = form.TagName; return true; } else return false; }