private void rawTableGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { InventoryModal inventoryModal = new InventoryModal(0); inventoryModal.nameTextBox.Text = this.rawTableGridView.CurrentRow.Cells[0].Value.ToString(); inventoryModal.quantityTextBox.Text = this.rawTableGridView.CurrentRow.Cells[1].Value.ToString(); inventoryModal.ShowDialog(); }
private void inventoryAddButton_Click_1(object sender, EventArgs e) { InventoryModal inventoryModal = new InventoryModal(1); inventoryModal.Visible = true; }