예제 #1
0
        private void btnSelectNode_Click(object sender, EventArgs e)
        {
            SelectNodeForm snf = new SelectNodeForm();

            snf.Adventure    = this.Adventure;
            snf.SelectedNode = this.StoryNode;
            if (snf.ShowDialog() == DialogResult.OK)
            {
                if (snf.SelectedNode == Option.Node)
                {
                    return;                     // Same node selected
                }

                Option.Node = new ReferenceNode(snf.SelectedNode);
                this.RebindControls();
                TriggerAdventureTreeRefresh();
            }
        }
예제 #2
0
        private void btnSelectNode_Click(object sender, EventArgs e)
        {
            SelectNodeForm snf = new SelectNodeForm();
            snf.Adventure = this.Adventure;
            snf.SelectedNode = this.StoryNode;
            if (snf.ShowDialog() == DialogResult.OK) {
                if (snf.SelectedNode == Option.Node) {
                    return; // Same node selected
                }

                Option.Node = new ReferenceNode(snf.SelectedNode);
                this.RebindControls();
                TriggerAdventureTreeRefresh();
            }
        }