private void button2_Click(object sender, EventArgs e) //Копіювання рецептів { int selectedRowIndex = dataGridView1.SelectedCells[0].RowIndex; if (Convert.ToString(dataGridView1[0, selectedRowIndex].Value) != String.Empty) { Newitem f1 = new Newitem(r[selectedRowIndex].mass, r[selectedRowIndex]); f1.Show(); } }
private void FirstToolStripMenuItem_Click(object sender, EventArgs e) { Newitem f1 = new Newitem(); f1.Show(); }
private void button1_Click(object sender, EventArgs e) { Newitem f1 = new Newitem(); f1.Show(); }