private void btn_add_cat_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     PL.FRM_CAT_ADD frm_add = new FRM_CAT_ADD();
     frm_add.id           = 0;
     frm_add.btn_add.Text = "اضافة";
     frm_add.Show();
 }
示例#2
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            FRM_CAT_ADD frm_add = new FRM_CAT_ADD();

            frm_add.id           = 0;
            frm_add.btn_add.Text = "اضافة";
            frm_add.Show();
        }
示例#3
0
        private void btn_edit_Click(object sender, EventArgs e)
        {
            FRM_CAT_ADD frm_add = new FRM_CAT_ADD();

            id     = Convert.ToInt32(tileView1.GetFocusedRowCellValue("ID_CAT"));
            tb_cat = dbs.TB_CAT.Where(x => x.ID_CAT == id).FirstOrDefault();
            frm_add.txt_Name_Cat.Text = tb_cat.CAT_Name.ToString();
            model_pic.by            = tb_cat.CAT_Cover;
            frm_add.pic_cover.Image = Image.FromStream(model_pic.Convert_Img());
            frm_add.id           = id;
            frm_add.btn_add.Text = "التعديل";
            frm_add.Show();
        }