コード例 #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 frmLogin_Load(object sender, EventArgs e)
 {
     this.AutoScaleMode = AutoScaleMode.Dpi;
     this.PerformAutoScale();
     this.Top  = 0;
     this.Left = (int)((Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2);
     status    = controlManager.getStatusStripMain(mdiMain.NAME);
     this.delegateCatchMessage = new MessageStatusDelegate(addMessageStatus);
     subscriptionReactive();
 }
コード例 #3
0
 private void initControls()
 {
     status = controlManager.getStatusStripMain(mdiMain.NAME);
     lvwUsers.Columns.Add("Usuario", 120, HorizontalAlignment.Left);
     lvwUsers.Columns.Add("Nombres", 160, HorizontalAlignment.Left);
     lvwUsers.Columns.Add("Apellidos", 160, HorizontalAlignment.Left);
     this.delegateCatchMessage = new MessageStatusDelegate(addMessageStatus);
     this.delegateListOperator = new ListOperatorDelegate(addListOperator);
     cboTypeUser.SelectedIndex = -1;
 }
コード例 #4
0
 private void mdiMain_Load(object sender, EventArgs e)
 {
     this.Height = Screen.PrimaryScreen.Bounds.Height;
     this.Width  = Screen.PrimaryScreen.Bounds.Width;
     this.Top    = 0;
     this.Left   = (int)((Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2);
     controlManager.createStatusBar(this, ssMain);
     this.delegateCatchMessage = new MessageStatusDelegate(addMessageStatus);
     this.delegateCatchResult  = new MessageResultDelegate(addMessageResult);
     subscriptionReactive();
 }
コード例 #5
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();
        }