Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ColorEmitterParametersMin = ((HomeParticlesSoftware.MinMaxRGBColorControl)(target));
                return;

            case 2:
                this.MassEmitterParametersMinMax = ((HomeParticlesSoftware.MinMaxFloatControl)(target));
                return;

            case 3:
                this.OpacityEmitterParametersMinMax = ((HomeParticlesSoftware.MinMaxFloatControl)(target));
                return;

            case 4:
                this.QuantityEmitterParametersMinMax = ((HomeParticlesSoftware.MinMaxIntControl)(target));
                return;

            case 5:
                this.RotationEmitterParametersMinMax = ((HomeParticlesSoftware.MinMaxFloatControl)(target));
                return;

            case 6:
                this.ScaleEmitterParametersMinMax = ((HomeParticlesSoftware.MinMaxFloatControl)(target));
                return;

            case 7:
                this.SpeedEmitterParametersMinMax = ((HomeParticlesSoftware.MinMaxFloatControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ColorMin = ((HomeParticlesSoftware.MinMaxRGBColorControl)(target));
                return;

            case 2:
                this.ColorMax = ((HomeParticlesSoftware.MinMaxRGBColorControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.StationaryColor = ((HomeParticlesSoftware.MinMaxRGBColorControl)(target));
                return;

            case 2:
                this.VelocityColor = ((HomeParticlesSoftware.MinMaxRGBColorControl)(target));
                return;

            case 3:
                this.VelocityThreshold = ((HomeParticlesSoftware.SliderFloatControl)(target));
                return;
            }
            this._contentLoaded = true;
        }