Esempio n. 1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            Add_Medicine ad = new Add_Medicine();

            this.Close();
            ad.Show();
        }
Esempio n. 2
0
 private void Button2_Click(object sender, EventArgs e)
 {
     if (dataGridView1.CurrentRow.Index != -1)
     {
         Add_Medicine ad = new Add_Medicine(Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value), dataGridView1.CurrentRow.Cells[1].Value.ToString(), dataGridView1.CurrentRow.Cells[2].Value.ToString(), Convert.ToDateTime(dataGridView1.CurrentRow.Cells[3].Value), Convert.ToDateTime(dataGridView1.CurrentRow.Cells[4].Value), Convert.ToInt32(dataGridView1.CurrentRow.Cells[5].Value), Convert.ToInt32(dataGridView1.CurrentRow.Cells[6].Value));
         Close();
         ad.Show();
     }
 }