예제 #1
0
        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();
            }
        }
예제 #2
0
        private void FirstToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Newitem f1 = new Newitem();

            f1.Show();
        }
예제 #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            Newitem f1 = new Newitem();

            f1.Show();
        }