示例#1
0
 public void Assign(LayoutSettings settings)
 {
     TextColor              = settings.TextColor;
     BackgroundColor        = settings.BackgroundColor;
     BackgroundColor2       = settings.BackgroundColor2;
     ThinSeparatorsColor    = settings.ThinSeparatorsColor;
     SeparatorsColor        = settings.SeparatorsColor;
     PersonalBestColor      = settings.PersonalBestColor;
     AheadGainingTimeColor  = settings.AheadGainingTimeColor;
     AheadLosingTimeColor   = settings.AheadLosingTimeColor;
     BehindGainingTimeColor = settings.BehindGainingTimeColor;
     BehindLosingTimeColor  = settings.BehindLosingTimeColor;
     BestSegmentColor       = settings.BestSegmentColor;
     UseRainbowColor        = settings.UseRainbowColor;
     NotRunningColor        = settings.NotRunningColor;
     PausedColor            = settings.PausedColor;
     TextOutlineColor       = settings.TextOutlineColor;
     ShadowsColor           = settings.ShadowsColor;
     TimerFont              = settings.TimerFont as Font;
     TimesFont              = settings.TimesFont as Font;
     TextFont                     = settings.TextFont as Font;
     ShowBestSegments             = settings.ShowBestSegments;
     AlwaysOnTop                  = settings.AlwaysOnTop;
     AntiAliasing                 = settings.AntiAliasing;
     DropShadows                  = settings.DropShadows;
     Opacity                      = settings.Opacity;
     MousePassThroughWhileRunning = settings.MousePassThroughWhileRunning;
     BackgroundType               = settings.BackgroundType;
     BackgroundImage              = settings.BackgroundImage;
     ImageOpacity                 = settings.ImageOpacity;
     ImageBlur                    = settings.ImageBlur;
 }
示例#2
0
        public object Clone()
        {
            var settings = new LayoutSettings();

            settings.Assign(this);
            return(settings);
        }