public static ForeverColors GetColors(Control control) { if (control == null) { throw new ArgumentNullException(); } ForeverColors colors = new ForeverColors(); while (control != null && (control.GetType() != typeof(Forms.ForeverForm))) { control = control.Parent; } if (control != null) { Forms.ForeverForm skin = (Forms.ForeverForm)control; colors.Forever = skin.ForeverColor; } return(colors); }
private void UpdateColors() { ForeverColors Colors = ForeverLibrary.GetColors(this); _ButtonColorA = Colors.Forever; }
private void UpdateColors() { ForeverColors Colors = ForeverLibrary.GetColors(this); _ProgressColor = Colors.Forever; }
private void UpdateColors() { ForeverColors Colors = ForeverLibrary.GetColors(this); _SelectedColor = Colors.Forever; }