void CreateStoryNode(object sender, EventArgs e)
        {
            Story.Node storyNode = new Story.Node();

            AddNode(storyNode);
            SelectNode(storyNode);
        }
 public void LoadStoryNodeForm(Story.Node n)
 {
     propertyFormPlace.Children.Clear();
     Story.Properties form = new Story.Properties();
     form.LoadStoryNode(n);
     propertyFormPlace.Children.Add(form);
     form.SetKeyboardFocus();
     _propertyForm = form;
 }
        string OptionsToString(Story.Node n)
        {
            string res = "";

            foreach (Story.Option o in n.Options)
            {
                if (o.Edge != null)
                {
                    res += OptionToString(o);
                }
            }
            return(res);
        }
        string StoryNodeToString(Story.Node node)
        {
            string res  = _divider;
            string text = node.Text;

            if (text.Length == 0)
            {
                text = "#";
            }
            res += text;
            res += _startGroup;
            res += OptionsToString(node);
            res += _endGroup;
            return(res);
        }