Inheritance: System.Windows.Forms.Form
示例#1
0
        // Delete event
        private void button_delete_event_Click(object sender, EventArgs e)
        {
            Form      parent = this.ParentForm;
            NPCEditor editor = parent as NPCEditor;
            uint      id     = editor.Id;

            db_scripts.scriptList[id].line.RemoveAt(eventid);
            editor.Redraw(id);
        }
示例#2
0
        public void ShowNewForm(uint id)
        {
            NPCEditor childForm = new NPCEditor(id, comboBox_script_type.SelectedIndex == 0, comboBox_script_type.SelectedItem.ToString().ToLower());
            childForm.MdiParent = this;
            if (comboBox_script_type.SelectedIndex == 0)
                childForm.Text = "NPC:  " + id;
            else
                childForm.Text = "SCRIPT:  " + id;

            childForm.Show();
        }
示例#3
0
        public void ShowNewForm(uint id)
        {
            NPCEditor childForm = new NPCEditor(id, comboBox_script_type.SelectedIndex == 0, comboBox_script_type.SelectedItem.ToString().ToLower());

            childForm.MdiParent = this;
            if (comboBox_script_type.SelectedIndex == 0)
            {
                childForm.Text = "NPC:  " + id;
            }
            else
            {
                childForm.Text = "SCRIPT:  " + id;
            }

            childForm.Show();
        }