Exemple #1
0
		public override IModuleDataModel Clone() {
			var gradientLevelList = Colors.Select(glp => new GradientLevelPair(new ColorGradient(glp.ColorGradient), new Curve(glp.Curve))).ToList();
			var result = new AlternatingData
			{
				Colors = gradientLevelList,
				EnableStatic = EnableStatic,
				Interval = Interval,
				GroupLevel = GroupLevel,
				IntervalSkipCount = IntervalSkipCount
			};
			return result;
		}
Exemple #2
0
        protected override EffectTypeModuleData CreateInstanceForClone()
        {
            var gradientLevelList = Colors.Select(glp => new GradientLevelPair(new ColorGradient(glp.ColorGradient), new Curve(glp.Curve))).ToList();
            var result            = new AlternatingData
            {
                Colors            = gradientLevelList,
                EnableStatic      = EnableStatic,
                Interval          = Interval,
                GroupLevel        = GroupLevel,
                IntervalSkipCount = IntervalSkipCount
            };

            return(result);
        }
Exemple #3
0
        public override IModuleDataModel Clone()
        {
            var gradientLevelList = Colors.Select(glp => new GradientLevelPair(new ColorGradient(glp.ColorGradient), new Curve(glp.Curve))).ToList();
            var result            = new AlternatingData
            {
                Colors            = gradientLevelList,
                EnableStatic      = EnableStatic,
                Interval          = Interval,
                GroupLevel        = GroupLevel,
                IntervalSkipCount = IntervalSkipCount
            };

            return(result);
        }
Exemple #4
0
 public override IModuleDataModel Clone()
 {
     var gradientLevelList = new List<GradientLevelPair>();
     gradientLevelList.AddRange(Colors.ToList());
     var result = new AlternatingData
     {
         Colors = gradientLevelList,
         EnableStatic = EnableStatic,
         Interval = Interval,
         GroupLevel = GroupLevel,
         IntervalSkipCount = IntervalSkipCount
     };
     return result;
 }
Exemple #5
0
        public override IModuleDataModel Clone()
        {
            AlternatingData result = new AlternatingData();

            result.Level1         = Level1;
            result.Level2         = Level2;
            result.Color1         = Color1;
            result.Color2         = Color2;
            result.Enable         = Enable;
            result.Interval       = Interval;
            result.DepthOfEffect  = DepthOfEffect;
            result.GroupEffect    = GroupEffect;
            result.StaticColor2   = StaticColor2;
            result.StaticColor1   = StaticColor1;
            result.Curve2         = Curve2;
            result.Curve1         = Curve1;
            result.ColorGradient1 = new ColorGradient(ColorGradient1);
            result.ColorGradient2 = new ColorGradient(ColorGradient2);

            return(result);
        }
Exemple #6
0
 public Alternating()
 {
     _data = new AlternatingData();
     InitAllAttributes();
 }
Exemple #7
0
        public override IModuleDataModel Clone()
        {
            AlternatingData result = new AlternatingData();
            result.Level1 = Level1;
            result.Level2 = Level2;
            result.Color1 = Color1;
            result.Color2 = Color2;
            result.Enable = Enable;
            result.Interval = Interval;
            result.DepthOfEffect = DepthOfEffect;
            result.GroupEffect = GroupEffect;
            result.StaticColor2 = StaticColor2;
            result.StaticColor1 = StaticColor1;
            result.Curve2 = Curve2;
            result.Curve1 = Curve1;

            //if (ColorGradient1 != null)
            //    result.ColorGradient1 = (ColorGradient)ColorGradient1.Clone();
            //if (ColorGradient2 != null)
            //    result.ColorGradient2 = (ColorGradient)ColorGradient2.Clone();

            return result;
        }
Exemple #8
0
 public Alternating()
 {
     _data = new AlternatingData();
 }
Exemple #9
0
 public Alternating()
 {
     _data = new AlternatingData();
     InitAllAttributes();
 }
Exemple #10
0
 public Alternating()
 {
     _data = new AlternatingData();
 }