Example #1
0
        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);
            }
        }
Example #2
0
		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;
		}