示例#1
0
 private void initControls()
 {
     status = controlManager.getStatusStripMain(mdiMain.NAME);
     lvwProduct.Columns.Add("Producto", 220, HorizontalAlignment.Left);
     lvwProduct.Columns.Add("Precio", 60, HorizontalAlignment.Left);
     this.delegateCatchMessage = new MessageStatusDelegate(addMessageStatus);
     this.delegateListProduct  = new ListProductDelegate(addListProduct);
 }
示例#2
0
        private void frmRegisterSales_Load(object sender, EventArgs e)
        {
            this.AutoScaleMode = AutoScaleMode.Dpi;
            this.PerformAutoScale();
            this.Top    = 0;
            this.Width  = 712;
            this.Height = 535;

            this.Left                    = (int)((Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2);
            status                       = controlManager.getStatusStripMain(mdiMain.NAME);
            this.delegatePortData        = new PortDataDelegate(addPortData);
            this.delegateCatchMessage    = new MessageStatusDelegate(addMessageStatus);
            this.delegateListProduct     = new ListProductDelegate(addListProduct);
            this.delegateCatchMessagePay = new MessageStatusPayDelegate(addMessageStatusPay);
            this.delegateCatchMaxId      = new GetMaxIdDelegate(getMaxIdSale);
            this.delegateListDebt        = new ListDebtDelegate(getListDebt);
            this.delegateGetSale         = new GetSaletDelegate(getSale);
            subscriptionReactive();
            initControls();
            getListProducts();
        }