private void Parts_Modify_Button_Click(object sender, EventArgs e) { PartForm modifyPart = new PartForm("Modify Part", Inventory.lookupPart(Int32.Parse(PartsTableController.table.Rows[PartsTableController.table.CurrentCell.RowIndex].Cells[0].Value.ToString()))); modifyPart.Show(); Parts_Delete_Button.Enabled = false; Parts_Modify_Button.Enabled = false; }
private void Parts_Add_Button_Click(object sender, EventArgs e) { PartForm addPart = new PartForm("Add Part"); addPart.Show(); }