Example #1
0
        private void AddButton_Click(object sender, EventArgs e)
        {
            CharacterEditor.MainForm mf = new CharacterEditor.MainForm();
            mf.Ok         += new EventHandler(CharacterEditor_Add_Ok);
            mf.FormClosed += new FormClosedEventHandler(CharacterEditor_Closed);
            mf.Show();

            this.Enabled = false;
        }
Example #2
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            if (EnemiesListBox.SelectedItem != null)
            {
                Character ch = _special.Enemies[EnemiesListBox.SelectedIndex];
                CharacterEditor.MainForm mf = new CharacterEditor.MainForm(ch);
                mf.Ok         += new EventHandler(CharacterEditor_Edit_Ok);
                mf.FormClosed += new FormClosedEventHandler(CharacterEditor_Closed);
                mf.Show();

                this.Enabled = false;
            }
        }