Exemple #1
0
        private void Editbtn_Click(object sender, EventArgs e)
        {
            string      x = Convert.ToString(dataGridView1.SelectedCells[0].Value);
            int         y = Convert.ToInt32(x);
            AddItemForm a = new AddItemForm(y);

            a.ShowDialog();
        }
Exemple #2
0
        private void Addbtn_Click(object sender, EventArgs e)
        {
            AddItemForm a = new AddItemForm();

            a.ShowDialog();
        }