Пример #1
0
        private void newMiClicked(Object sender, EventArgs e)
        {
            DialogResult result;

            if (changesMade)
            {
                result = discardChangesDialog();
                if (result == DialogResult.No)
                {
                    saveMiClicked(new object(), new EventArgs());
                }
                else if (result == DialogResult.Cancel)
                {
                    return;
                }
            }
            Conversation     newCon = new Conversation("");
            DialogProperties dp     = new DialogProperties(ref newCon);

            dp.Text = "New Dialog";
            result  = dp.ShowDialog(this);
            if (result == DialogResult.Cancel)
            {
                return;
            }

            conversation = newCon;
            treeListView.ClearObjects();
            NpcIdGenerator = new IdGenerator();
            fileName       = "";
            this.Text      = "Dialog Manager - " + conversation.npcName;
            changesMade    = false;
        }
Пример #2
0
        private void propertiesMenuItem_Click(object sender, EventArgs e)
        {
            DialogProperties prop   = new DialogProperties(ref conversation);
            DialogResult     result = prop.ShowDialog(this);

            if (result == DialogResult.Cancel)
            {
                return;
            }

            this.Text = "Dialog Editor - " + conversation.npcName + "*";

            changesMade = true;
        }
Пример #3
0
Файл: GUI.cs Проект: VicBoss/KR
        private void propertiesMenuItem_Click(object sender, EventArgs e)
        {
            DialogProperties prop = new DialogProperties(ref conversation);
            DialogResult result = prop.ShowDialog(this);

            if (result == DialogResult.Cancel)
                return;

            this.Text = "Dialog Editor - " + conversation.npcName + "*";

            changesMade = true;
        }
Пример #4
0
Файл: GUI.cs Проект: VicBoss/KR
        private void newMiClicked(Object sender, EventArgs e)
        {
            DialogResult result;
            if (changesMade)
            {
                result = discardChangesDialog();
                if (result == DialogResult.No)
                {
                    saveMiClicked(new object(), new EventArgs());
                }
                else if (result == DialogResult.Cancel)
                    return;
            }
            Conversation newCon = new Conversation("");
            DialogProperties dp = new DialogProperties(ref newCon);
            dp.Text = "New Dialog";
            result = dp.ShowDialog(this);
            if (result == DialogResult.Cancel)
                return;

            conversation = newCon;
            treeListView.ClearObjects();
            NpcIdGenerator = new IdGenerator();
            fileName = "";
            this.Text = "Dialog Manager - " + conversation.npcName;
            changesMade = false;
        }