Control MakeTallyRow(Control container, CountTree count) { var row = new PlotTallyButton(count); row.SuspendLayout(); row.TallyButtonClicked += new EventHandler(this.tallyRow_TallyButtonClicked); row.SettingsButtonClicked += new EventHandler(this.tallyRow_InfoButtonClicked); //row.Width = 90; row.Parent = container; row.Dock = DockStyle.Left; row.ResumeLayout(false); return(row); }
public Control MakeTallyRow(Control container, CountTreeVM count) { var row = new PlotTallyButton(count); row.SuspendLayout(); row.TallyButtonClicked += new EventHandler(this.TallyButton_Click); row.SettingsButtonClicked += new EventHandler(this.SettingsButton_Click); row.Width = 90; row.Parent = container; row.Dock = DockStyle.Left; row.ResumeLayout(false); return row; }