private void ConfigFont(PropertyInvoker property, Label lbl) { FontDialog fd = new FontDialog(); //fd.ShowColor = true; // TODO //fd.ShowApply = true; if (fd.ShowDialog() == DialogResult.OK) { property.Property = fd.Font; lbl.Font = fd.Font; UpdateGroupCtrlSettings(); } }
private void ConfigColor(PropertyInvoker property, Panel pnl) { ColorDialog cd = new ColorDialog(); cd.AllowFullOpen = true; cd.FullOpen = true; cd.Color = (Color)property.Property; if (cd.ShowDialog() == DialogResult.OK) { property.Property = cd.Color; pnl.BackColor = cd.Color; UpdateGroupCtrlSettings(); } }