//---------------------------------------------------------- // Tool strip option 'Display Entry' has been selected // display data from the selected row in Job Entry form //---------------------------------------------------------- private void DisplayEntryItem_Click(object sender, EventArgs e) { frmJobEntry frm = new frmJobEntry(); // make a new entry form frm.DisplayTableData(dataGridView1); frm.SetConnString(connString); frm.FormClosed += new FormClosedEventHandler(EntryForm_FormClosed); frm.Show(); }
//---------------------------------------------------------- // New Entry item clicked // create new entry form and display //---------------------------------------------------------- private void NewEntryItem_Click(object sender, EventArgs e) { frmJobEntry frm = new frmJobEntry(); // make a new entry form frm.SetConnString(connString); frm.FormClosed += new FormClosedEventHandler(EntryForm_FormClosed); frm.SetDefaultCheckBoxes(); frm.Show(); }