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); }
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(); }
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; }
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(); }
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(); }