Example #1
0
        private void navBarItem8_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            if (cl.checkpermissions(connectiondata.user_id, "حركه الاصناف", "show_", 1) == false)
            {
                return;
            }

            frm_productsMovies frm = new frm_productsMovies();

            openform(frm);
        }
Example #2
0
        private void btn_movies_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            string             product_name  = gridView1.GetFocusedRowCellValue("product_name").ToString();
            int                product_code_ = int.Parse(gridView1.GetFocusedRowCellValue("product_code").ToString());
            frm_productsMovies frm           = new frm_productsMovies();

            frm.product_name.Text = product_name;
            frm.Text += " " + product_name;
            frm.txt_products.EditValue = product_code_;
            frm_othermain.getmain.openform(frm);
            frm.btn_show_Click(null, null);
        }
        private void btn_productmoves_Click(object sender, EventArgs e)
        {
            if (gridView1.RowCount == 0)
            {
                return;
            }

            string             product_name  = gridView1.GetFocusedRowCellValue("product_name").ToString();
            int                product_code_ = int.Parse(gridView1.GetFocusedRowCellValue("product_code").ToString());
            frm_productsMovies frm           = new frm_productsMovies();

            frm.product_name.Text = product_name;
            frm.Text += " " + product_name;
            frm.txt_products.EditValue = product_code_;
            frm_othermain.getmain.openform(frm);
            frm.btn_show_Click(null, null);
        }