private void addNewSessionToolStripMenuItem_Click_1(object sender, EventArgs e) { New_Session nw = new New_Session(false, this); nw.MdiParent = this.MdiParent; nw.Show(); }
private void modifySessionToolStripMenuItem1_Click(object sender, EventArgs e) { try { string datetime = dataGridView1.SelectedRows[0].Cells[1].Value.ToString(); MessageBox.Show(datetime); string comment = dataGridView1.SelectedRows[0].Cells[2].Value.ToString(); session_id = dataGridView1.SelectedRows[0].Cells[0].Value.ToString(); New_Session nw = new New_Session(true, this); nw.MdiParent = this.MdiParent; nw.get_values(datetime, comment, user_id, session_id); nw.Show(); } catch (System.ArgumentOutOfRangeException ex) { } }