Esempio n. 1
0
        //add botton
        private void button2_Click(object sender, EventArgs e)
        {
            Close();
            frm_add frm = new frm_add();

            frm.ShowDialog();
        }
Esempio n. 2
0
        //update botton
        private void button3_Click(object sender, EventArgs e)
        {
            Close();
            frm_add frm = new frm_add();

            frm.txtID.Text     = dataGridView1.CurrentRow.Cells[0].Value.ToString();
            frm.txtDes.Text    = dataGridView1.CurrentRow.Cells[1].Value.ToString();
            frm.txtCode.Text   = dataGridView1.CurrentRow.Cells[2].Value.ToString();
            frm.txtNote.Text   = dataGridView1.CurrentRow.Cells[3].Value.ToString();
            frm.btnAdd.Text    = "تعديل";
            frm.state          = "update";
            frm.txtID.ReadOnly = true;
            frm.txtDes.Select();
            frm.ShowDialog();
        }
Esempio n. 3
0
 //frm_add
 private void roundButton1_Click(object sender, EventArgs e)
 {
     PL.frm_add frm = new PL.frm_add();
     frm.ShowDialog();
 }