Beispiel #1
0
 private void openToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
     {
         Qa newform = ShowNewQaForm("");
         newform.OpenFile(this.openFileDialog1.FileName);
     }
 }
Beispiel #2
0
        private Qa ShowNewQaForm(string query)
        {
            Qa newform = new Qa();

            newform.Icon             = this.Icon;
            newform.FormClosed      += new FormClosedEventHandler(newform_FormClosed);
            newform.ConnectionString = connstr;
            newform.QueryText        = query;
            newform.MdiParent        = this;
            newform.Show();
            EnableSaveMenuItems(true);
            EnableEditMenuItems(true);
            return(newform);
        }
Beispiel #3
0
 private Qa ShowNewQaForm(string query)
 {
     Qa newform = new Qa();
     newform.Icon = this.Icon;
     newform.FormClosed += new FormClosedEventHandler(newform_FormClosed);
     newform.ConnectionString = connstr;
     newform.QueryText = query;           
     newform.MdiParent = this;
     newform.Show();
     EnableSaveMenuItems(true);
     EnableEditMenuItems(true);
     return newform;
 }
Beispiel #4
0
        private void selectAllCtrlAToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Qa frm = (Qa)ActiveMdiChild;

            frm.SelectAll();
        }
Beispiel #5
0
        private void pasteCtrlvToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Qa frm = (Qa)ActiveMdiChild;

            frm.Paste();
        }
Beispiel #6
0
        private void copyCtrlCToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Qa frm = (Qa)ActiveMdiChild;

            frm.Copy();
        }
Beispiel #7
0
        private void runF5ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Qa activeqa = (Qa)this.ActiveMdiChild;

            activeqa.RunQuery();
        }
Beispiel #8
0
        private void saveAsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Qa activeqa = (Qa)this.ActiveMdiChild;

            activeqa.SaveAs();
        }