private void btn_Edit_Click_1(object sender, EventArgs e)
        {
            FRM_ADD_PRODUCT frm = new FRM_ADD_PRODUCT();

            frm.txt_ID.Text           = DGV_Data.CurrentRow.Cells[0].Value.ToString();
            frm.txt_PRICE.Text        = DGV_Data.CurrentRow.Cells[3].Value.ToString();
            frm.txt_QUT.Text          = DGV_Data.CurrentRow.Cells[2].Value.ToString();
            frm.txt_Description.Text  = DGV_Data.CurrentRow.Cells[4].Value.ToString();
            frm.CMD_CATEGERORIES.Text = DGV_Data.CurrentRow.Cells[1].Value.ToString();
            frm.Text            = "تعديل المنتج" + DGV_Data.CurrentRow.Cells[0].Value.ToString();
            frm.btn_ADD.Text    = "تعديل المنتج";
            frm.FRMstate        = "edit";
            frm.txt_ID.ReadOnly = true;
            byte[]       image = (byte[])cl.Select_Image(this.DGV_Data.CurrentRow.Cells[0].Value.ToString()).Rows[0][0];
            MemoryStream ms    = new MemoryStream(image);

            frm.PICBOX.Image = Image.FromStream(ms);
            frm.ShowDialog();
        }
        private void btn_ADD_Click_1(object sender, EventArgs e)
        {
            FRM_ADD_PRODUCT frm = new FRM_ADD_PRODUCT();

            frm.ShowDialog();
        }
Esempio n. 3
0
        private void اضافهمنتججديدToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FRM_ADD_PRODUCT frmadd = new FRM_ADD_PRODUCT();

            frmadd.Show();
        }