Esempio n. 1
0
        /// <summary>
        /// Apply a <see cref="Extra.Theme.ITheme"/> on this control.
        /// </summary>
        /// <param name="theme">A theme to be applied.</param>
        public void ApplyTheme(Extra.Theme.ITheme theme)
        {
            this.BackColor = theme.Form_BackgroundColor;
            this.ForeColor = theme.Form_FontColor;

            this.fix_label.ForeColor = theme.Form_FontColor;

            this.sevenSegmentArray1.ColorBackground = theme.Form_BackgroundColor;
            this.sevenSegmentArray1.ColorDark       = theme.SevenSegment_DarkColor;
            this.sevenSegmentArray1.ColorLight      = theme.SevenSegment_LightColor;
        }
Esempio n. 2
0
        /// <summary>
        /// Apply a <see cref="Extra.Theme.ITheme"/> on this control.
        /// </summary>
        /// <param name="theme">A theme to be applied.</param>
        public void ApplyTheme(Extra.Theme.ITheme theme)
        {
            this.BackColor = theme.Form_BackgroundColor;
            this.ForeColor = theme.Form_FontColor;

            this.tableLayoutPanel1.BackColor = theme.Graph_BackgroundColor;

            this.fix_label.ForeColor = theme.Form_FontColor;

            this.barGraph.BackGroundGraphColor = theme.Graph_BackgroundGraphColor;
            this.barGraph.AxisColor            = theme.Graph_AxisColor;
            this.barGraph.MainBarColor         = theme.Graph_MainColor;
            this.barGraph.ValueColor           = theme.Form_FontColor;
        }