Esempio n. 1
0
        private void FrmPOPALL_Load(object sender, EventArgs e)
        {
            WorkOrderDSService work = new WorkOrderDSService();
            List <POPVO>       pop  = work.POPFACILITY();

            int iCnt = 0;

            foreach (POPVO task in pop)
            {
                UserControl1 taskcontrol = new UserControl1(task.FCLTS_CODE);
                taskcontrol.Location = new Point(50, 25 + (225 * iCnt));
                taskcontrol.Size     = new Size(1800, 200);
                taskcontrol.Name     = $"taskControl{iCnt}";

                taskcontrol.Task_ID   = task.FCLTS_NAME;
                taskcontrol.Task_code = task.FCLTS_CODE;
                taskcontrol.Task_IP   = task.FCLTS_IP;
                taskcontrol.Task_Port = task.FCLTS_PORT;


                panel1.Controls.Add(taskcontrol);
                iCnt++;
            }
            FrmPOPMDI frm = (FrmPOPMDI)this.MdiParent;

            frm.Readed += Readed_BarCode;
        }
Esempio n. 2
0
        private void FrmPOPMAIN_Load(object sender, EventArgs e)
        {
            FrmPOPMDI frm = (FrmPOPMDI)this.MdiParent;

            frm.Readed += Readed_BarCode;
            ComboBinding();
            DataGridViewColumnSet1();
            DataGridViewBinding1();
        }