Example #1
0
 private void cb_update_Click(object sender, EventArgs e)
 {
     if (Uform == null)
     {
         Uform = new updateForm(this);
     }
     Uform.Show();
 }
Example #2
0
        private void updateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int    idd    = int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString());
            string namee  = dataGridView1.CurrentRow.Cells[1].Value.ToString();
            string pricee = dataGridView1.CurrentRow.Cells[2].Value.ToString();
            string qq     = dataGridView1.CurrentRow.Cells[3].Value.ToString();
            string pic    = dataGridView1.CurrentRow.Cells[4].Value.ToString();

            updateForm uForm = new updateForm(idd, namee, pricee, qq, pic);

            uForm.Show();
        }