예제 #1
0
        public void open_timer(string id_session)
        {
            Timer_Menu tm = new Timer_Menu(id_session);

            tm.MdiParent = this.MdiParent;
            tm.Show();
        }
예제 #2
0
        private void fileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Timer_Menu tm = new Timer_Menu("");

            tm.MdiParent = this;
            tm.Show();
        }
예제 #3
0
 private void selectSessionAndOpenTimerToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         string     session = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
         Timer_Menu tm      = new Timer_Menu(session);
         tm.MdiParent = this.MdiParent;
         tm.Show();
     }
     catch (System.ArgumentOutOfRangeException ex) { }
 }
예제 #4
0
 private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         try
         {
             string     session = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
             Timer_Menu tm      = new Timer_Menu(session);
             tm.MdiParent = this.MdiParent;
             tm.Show();
         }
         catch (System.ArgumentOutOfRangeException ex) { }
     }
 }