Example #1
0
        public static void ChangeForeColor(bool mode, Control form, Color Forecolor)
        {
            List <Control> availControls = GetAllControls.GetControls(form);

            if (mode)
            {
                foreach (var item in availControls)
                {
                    item.ForeColor = Forecolor;
                }
            }
        }
Example #2
0
        void FlatApperence(Color MouseDownBackColor)
        {
            List <Control> availControls = GetAllControls.GetControls(this);

            foreach (var item in availControls)
            {
                if (item is Button button)
                {
                    button.FlatAppearance.MouseDownBackColor = MouseDownBackColor;
                }
            }
        }
Example #3
0
        public static void ThemeChange(bool mode, Control form, Color backcolor, Color MouseDownBackColor)
        {
            List <Control> availControls = GetAllControls.GetControls(form);

            if (mode)
            {
                foreach (var item in availControls)
                {
                    item.BackColor = backcolor;
                    if (item is Button button)
                    {
                        button.FlatAppearance.MouseDownBackColor = MouseDownBackColor;
                    }
                }
            }
        }