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."); } }
// 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(); }
// 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(); }
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."); }