Example #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            PL.insertMaterial frm = new PL.insertMaterial();

            frm.state         = "update";
            frm.noMtr.Text    = this.dataGridView1.CurrentRow.Cells[0].Value.ToString();
            frm.nameMtr.Text  = this.dataGridView1.CurrentRow.Cells[1].Value.ToString();
            frm.buyCost.Text  = this.dataGridView1.CurrentRow.Cells[2].Value.ToString();
            frm.saleCost.Text = this.dataGridView1.CurrentRow.Cells[3].Value.ToString();
            frm.qte.Text      = this.dataGridView1.CurrentRow.Cells[4].Value.ToString();
            frm.Text          = "تحديث المنتوج : " + this.dataGridView1.CurrentRow.Cells[1].Value.ToString();
            frm.button1.Text  = "تحديث";
            frm.ShowDialog();
            if (frm.isUpdate == "true")
            {
                this.dataGridView1.DataSource = mtr.getMatirialInfo();
            }
        }
Example #2
0
 private void btnstore_Click(object sender, EventArgs e)
 {
     PL.insertMaterial addMaterial = new PL.insertMaterial();
     addMaterial.ShowDialog();
 }