private void menuTableGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { MenuModal menuModal = new MenuModal(0); menuModal.Identifire = this.menuTableGridView.CurrentRow.Cells[0].Value.ToString(); menuModal.nameTextBox.Text = this.menuTableGridView.CurrentRow.Cells[1].Value.ToString(); menuModal.priceTextBox.Text = this.menuTableGridView.CurrentRow.Cells[2].Value.ToString(); menuModal.ShowDialog(); }
private void menuAddButton_Click_1(object sender, EventArgs e) { MenuModal menuModal = new MenuModal(1); menuModal.Visible = true; }