Beispiel #1
0
        private void btnCreate_Click(object sender, EventArgs e)
        {
            ItemManagement createItem = new ItemManagement();

            createItem.FormClosing += new FormClosingEventHandler(this.ItemManagement_FormClosing);
            createItem.Show();
        }
Beispiel #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0 && !dataGridView1.SelectedRows[0].IsNewRow)
     {
         DataGridViewSelectedRowCollection selectedRow = dataGridView1.SelectedRows;
         ItemManagement editItem = new ItemManagement(selectedRow);
         editItem.FormClosing += new FormClosingEventHandler(this.ItemManagement_FormClosing);
         editItem.Show();
     }
 }