private void Edit_Prdct_Click(object sender, EventArgs e)
        {
            FRM_ADD_PRODUCT edit = new FRM_ADD_PRODUCT();

            edit.textBox_PRD_ID.Text      = dataGridView1.CurrentRow.Cells[0].Value.ToString();
            edit.textBox_PRD_Name.Text    = dataGridView1.CurrentRow.Cells[1].Value.ToString();
            edit.textBox_PRD_Qunt.Text    = dataGridView1.CurrentRow.Cells[2].Value.ToString();
            edit.textBox_PRD_Price.Text   = dataGridView1.CurrentRow.Cells[4].Value.ToString();
            edit.comboBox_Categories.Text = dataGridView1.CurrentRow.Cells[3].Value.ToString();
            edit.Text                    = "Updating product  " + "\" " + dataGridView1.CurrentRow.Cells[1].Value.ToString() + " \"";
            edit.AddProduct.Text         = "Update";
            edit.state                   = "Update";
            edit.textBox_PRD_ID.ReadOnly = true;

            //-----------------------------------------------------------------------------------

            //throw exception Read Time out - Write Time Out
            image = (byte[])prd.get_image(dataGridView1.CurrentRow.Cells[0].Value.ToString()).Rows[0][0];
            MemoryStream ms = new MemoryStream(image);

            edit.pictureBox_PRD_Img.Image = Image.FromStream(ms);

            edit.Show();
        }
        private void addNewProductToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FRM_ADD_PRODUCT addproduct = new FRM_ADD_PRODUCT();

            addproduct.ShowDialog();
        }
        private void Add_New_prdct_Click(object sender, EventArgs e)
        {
            FRM_ADD_PRODUCT add = new FRM_ADD_PRODUCT();

            add.Show();
        }