public FixCNTTallyButton(IFixCNTTallyBucket bucket, FixCNTTallyControl tallyLayout) { InitializeComponent(); Click += new EventHandler(FixCNTTallyButton_Click); foreach (Control c in Controls) { c.Click += FixCNTTallyButton_Click; } TallyLayout = tallyLayout; Bucket = bucket; }
public FixCNTTallyButton(IFixCNTTallyBucket bucket, FixCNTTallyControl tallyLayout) { InitializeComponent(); Click += new EventHandler(FixCNTTallyButton_Click); foreach (Control c in Controls) { c.Click += FixCNTTallyButton_Click; } TallyLayout = tallyLayout; Bucket = bucket; }
public FixCntTallyRow(IFixCNTTallyPopulation population, FixCNTTallyControl tallyLayout) { InitializeComponent(); TallyLayout = tallyLayout; _speciesName_LBL.Text = population.TreeDefaultValue.Species; this.SuspendLayout(); foreach (var tally in population.Buckets) { var tallyButton = new FixCNTTallyButton(tally, tallyLayout); tallyButton.Dock = DockStyle.Right; _tallyContainer_PNL.Controls.Add(tallyButton); } ResumeLayout(false); }
public FixCntTallyRow(IFixCNTTallyPopulation population, FixCNTTallyControl tallyLayout) { InitializeComponent(); TallyLayout = tallyLayout; _speciesName_LBL.Text = population.TreeDefaultValue.Species; this.SuspendLayout(); foreach (var tally in population.Buckets) { var tallyButton = new FixCNTTallyButton(tally, tallyLayout); tallyButton.Dock = DockStyle.Right; _tallyContainer_PNL.Controls.Add(tallyButton); } ResumeLayout(false); }