private void CreateControls() { this.lblHour = new FormLabel(0, "lblHour", false, "Hour"); this.lblMinute = new FormLabel(1, "lblMinute", false, "Minute"); this.tlpMain.Controls.Add(this.lblHour, 0, 0); this.tlpMain.Controls.Add(this.lblMinute, 2, 0); }
private void CreateControls() { this.lblAfter = new FormLabel(0, "lblAfter", false, "Any day after"); this.lblBefore = new FormLabel(2, "lblBefore", false, "And before"); this.tableLayoutPanel1.Controls.Add(this.lblAfter, 0, 0); this.tableLayoutPanel1.Controls.Add(this.lblBefore, 0, 2); }
private void CreateControls() { this.lblYear = new FormLabel(0, "lblYear", false, "Year"); this.lblMonth = new FormLabel(1, "lblMonth", false, "Month"); this.lblDay = new FormLabel(2, "lblDay", false, "Day"); this.tlpMain.Controls.Add(this.lblMonth, 2, 0); this.tlpMain.Controls.Add(this.lblDay, 4, 0); this.tlpMain.Controls.Add(this.lblYear, 0, 0); }
public RuleConstraintTypeSelector(Entities.TourCostRuleConstraint constraint) : base(constraint) { InitializeComponent(); this.lblConstraintType = new FormLabel(0, "lblConstraintType", false, "Constraint type"); this.tlpMain.Controls.Add(this.lblConstraintType, 0, 1); this.Dock = DockStyle.Fill; this.cbxConstraintTypes.SelectedIndexChanged += new System.EventHandler(cbxConstraintTypes_SelectedIndexChanged); this.cbxConstraintTypes.DataSource = DomainModel.TourCostConstraintTypes.GetAll(); }
private void SetupControls() { this.Dock = DockStyle.Fill; this.lblServiceType = new FormLabel(0, "lblServiceType", true, "lbl_tour_type"); this.lblserved = new FormLabel(1, "lblCostMembers", true, "lbl_served"); this.cbxServiceTypes = new ComboBox(); this.cbxServiceTypes.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; this.cbxServiceTypes.SelectedIndexChanged += new System.EventHandler(cbxServiceTypes_SelectedIndexChanged); this.dgvServedMembers = new TourCostDetailsGridView(this.service.CostDetails); this.tlpMain.Controls.Add(this.lblServiceType, 0, 0); this.tlpMain.Controls.Add(this.cbxServiceTypes, 1, 0); this.tlpMain.Controls.Add(this.lblserved, 0, 1); this.tlpMain.Controls.Add(this.dgvServedMembers, 0, 2); this.tlpMain.SetColumnSpan(this.dgvServedMembers, 2); }