コード例 #1
0
 private void FrmMain_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Control && e.KeyCode == Keys.F)
     {
         txtSerch1.Focus();
         txtSerch1.SelectAll();
     }
     else if (e.Control && e.KeyCode == Keys.R)
     {
         FrmRunnerCrawler frmRunnerCrawler = new FrmRunnerCrawler();
         frmRunnerCrawler.Show();
         frmRunnerCrawler.MdiParent           = this;
         frmRunnerCrawler.eventRunnerCrawler += new FrmRunnerCrawler.DelegateRunnerCrawler(delegate(int idRunner)
         {
             FrmCrawlerRaoVat2 frmCrawlerRaoVat = new FrmCrawlerRaoVat2(idRunner);
             frmCrawlerRaoVat.Start();
             frmCrawlerRaoVat.MdiParent = this;
             frmCrawlerRaoVat.Show();
         });
     }
     else if (e.Control && e.KeyCode == Keys.F5)
     {
         ReloadListConfig();
     }
 }
コード例 #2
0
        private void runnerCrawlerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmRunnerCrawler frm = new FrmRunnerCrawler();

            frm.MdiParent = this;
            frm.Show();
        }