Exemplo n.º 1
0
        public override void GetSetting()
        {
            base.GetSetting();

            this.generalAnimationSettings1.GetValues();

            this.AnimatedSetting.Property = AnimatedSetting.Property;
            this.AnimatedSetting.StartValueIsCurrentValue = (this.checkBoxUseCurrentValue.Checked);

            if (this.checkBoxUseCurrentValue.Checked)
            {
                this.AnimatedSetting.Value = null;
            }
            else
            {
                this.AnimatedSetting.Value = new Size((int)this.numericUpDownStart1.Value, (int)this.numericUpDownEnd1.Value);
            }


            if (this.AnimatedSetting.AnimationType == RadAnimationType.ByStartEndValues)
            {
                this.AnimatedSetting.EndValue = new Size((int)this.numericUpDownStart2.Value, (int)this.numericUpDownEnd2.Value);
            }
            else
            {
                this.AnimatedSetting.Step = XmlAnimatedPropertySetting.SerializeStep(this.ConvertFromDecimal(this.numericUpDownStep.Value));
                if (!this.checkBoxAutomaticReverse.Checked)
                {
                    this.AnimatedSetting.ReverseStep = XmlAnimatedPropertySetting.SerializeStep(this.ConvertFromDecimal(this.numericUpDownReverseStep.Value));
                }
            }
        }
Exemplo n.º 2
0
        public override void GetSetting()
        {
            base.GetSetting();

            this.generalAnimationSettings1.GetValues();
            this.AnimatedSetting.StartValueIsCurrentValue = (this.checkBoxUseCurrentValue.Checked);

            if (!this.checkBoxUseCurrentValue.Checked)
            {
                this.AnimatedSetting.Value = XmlPropertySetting.DeserializeValue(this.Property, this.tbStartRectangle.Text);
            }
            else
            {
                this.AnimatedSetting.Value = null;
            }

            this.AnimatedSetting.StartValueIsCurrentValue = this.checkBoxUseCurrentValue.Checked;
            //   this.AnimatedSetting.ApplyEasingType = this.comboApplyeasing

            if (this.AnimatedSetting.AnimationType == RadAnimationType.ByStartEndValues)
            {
                this.AnimatedSetting.EndValue = XmlPropertySetting.DeserializeValue(Property, this.tbEndRectangle.Text);
            }
            else
            {
                this.AnimatedSetting.Step = XmlAnimatedPropertySetting.SerializeStep(this.GetValidatedPadding(tbStepRectangle.Text));

                if (!checkBoxAutomaticReverse.Checked)
                {
                    this.AnimatedSetting.ReverseStep =
                        XmlAnimatedPropertySetting.SerializeStep(this.GetValidatedPadding(tbReversedStepRectangle.Text));
                }
            }
        }
Exemplo n.º 3
0
        public override void GetSetting()
        {
            base.GetSetting();

            this.generalAnimationSettings1.GetValues();
            this.AnimatedSetting.StartValueIsCurrentValue = (this.checkBoxUseCurrentValue.Checked);

            if (!this.checkBoxUseCurrentValue.Checked)
            {
                this.AnimatedSetting.Value = this.GetFont(this.tbStartSize.Text);
            }
            else
            {
                this.AnimatedSetting.Value = null;
            }

            if (this.AnimatedSetting.AnimationType == RadAnimationType.ByStartEndValues)
            {
                this.AnimatedSetting.EndValue = this.GetFont(this.tbEndSize.Text);
            }
            else
            {
                this.AnimatedSetting.Step = XmlAnimatedPropertySetting.SerializeStep(
                    new FontAnimationStep(this.GetFont(this.tbStepSize.Text).Size)
                    );

                if (!checkBoxAutomaticReverse.Checked)
                {
                    this.AnimatedSetting.ReverseStep = XmlAnimatedPropertySetting.SerializeStep(
                        new FontAnimationStep(this.GetFont(this.tbReversedStepSize.Text).Size)
                        );
                }
            }
        }
Exemplo n.º 4
0
        public override void GetSetting()
        {
            base.GetSetting();

            this.generalAnimationSettings1.GetValues();
            this.AnimatedSetting.StartValueIsCurrentValue = (this.checkBoxUseCurrentValue.Checked);

            if (!this.checkBoxUseCurrentValue.Checked)
            {
                this.AnimatedSetting.Value = this.colorComboStart.SelectedColor;
            }
            else
            {
                this.AnimatedSetting.Value = null;
            }

            if (this.AnimatedSetting.AnimationType == RadAnimationType.ByStartEndValues)
            {
                this.AnimatedSetting.EndValue = this.colorComboEnd.SelectedColor;
            }
            else
            {
                this.AnimatedSetting.Step = XmlAnimatedPropertySetting.SerializeStep(
                    new ColorAnimationStep(
                        (int)this.upDownStepA.Value,
                        (int)this.upDownStepR.Value,
                        (int)this.upDownStepG.Value,
                        (int)this.upDownStepB.Value
                        )
                    );

                if (!checkBoxAutomaticReverse.Checked)
                {
                    this.AnimatedSetting.ReverseStep = XmlAnimatedPropertySetting.SerializeStep(
                        new ColorAnimationStep(
                            (int)this.upDownReverseStepA.Value,
                            (int)this.upDownReverseStepR.Value,
                            (int)this.upDownReverseStepG.Value,
                            (int)this.upDownReverseStepB.Value
                            )
                        );
                }
            }
        }