Example #1
0
        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);
        }
Example #2
0
        private void UpdateColors()
        {
            ForeverColors Colors = ForeverLibrary.GetColors(this);

            _ButtonColorA = Colors.Forever;
        }
        private void UpdateColors()
        {
            ForeverColors Colors = ForeverLibrary.GetColors(this);

            _ProgressColor = Colors.Forever;
        }
Example #4
0
        private void UpdateColors()
        {
            ForeverColors Colors = ForeverLibrary.GetColors(this);

            _SelectedColor = Colors.Forever;
        }