Inheritance: System.Windows.Forms.Form
示例#1
0
 private void toToolStripMenuItem_Click(object sender, EventArgs e)
 {
     menuStrip1.Focus();
     if (customlistBoxsummons.SelectedIndex != -1)
     {
         ScriptDisplay sd = new ScriptDisplay(summons.PrintToQueryWindow(summon_id));
         sd.ShowDialog();
     }
     else
     {
         MessageBox.Show("There are no scripts selected in the list.");
     }
 }
示例#2
0
        // Query window button
        private void queryWindowToolStripMenuItem_Click(object sender, EventArgs e)
        {
            menuStrip1.Focus();
            ScriptDisplay sd = null;

            if (bIsCreature)
            {
                sd = new ScriptDisplay(creatures.PrintCreatureToWindow(this.id));
            }
            else
            {
                sd = new ScriptDisplay(db_scripts.PrintScriptToWindow(this.id, scriptTable));
            }

            sd.ShowDialog();
        }
示例#3
0
        // Query window button
        private void queryWindowToolStripMenuItem_Click(object sender, EventArgs e)
        {
            menuStrip1.Focus();
            ScriptDisplay sd = null;

            if (bIsCreature)
                sd = new ScriptDisplay(creatures.PrintCreatureToWindow(this.id));
            else
                sd = new ScriptDisplay(db_scripts.PrintScriptToWindow(this.id, scriptTable));

            sd.ShowDialog();
        }
示例#4
0
 private void toToolStripMenuItem_Click(object sender, EventArgs e)
 {
     menuStrip1.Focus();
     if (customlistBoxsummons.SelectedIndex != -1)
     {
         ScriptDisplay sd = new ScriptDisplay(summons.PrintToQueryWindow(summon_id));
         sd.ShowDialog();
     }
     else
         MessageBox.Show("There are no scripts selected in the list.");
 }