void button_SizeChanged(object sender, EventArgs e) { Genetibase.NuGenMediImage.UI.Controls.RibbonButton button = (Genetibase.NuGenMediImage.UI.Controls.RibbonButton)sender; if (button.Height != 39) { button.Height = 39; } }
internal void AddButton(Genetibase.NuGenMediImage.UI.Controls.RibbonButton button) { button.SizeChanged += new EventHandler(button_SizeChanged); this.flowLayoutPanel1.Controls.Add(button); }