Exemplo n.º 1
0
 private static MinAndMaxTexCoodValueLimits GetSliderValue(SliderForAdjustSkin slider)
 {
     return(slider != null && slider.Visibility == Visibility.Visible ? new MinAndMaxTexCoodValueLimits
     {
         Min = slider.SliderMin.Value, Max = slider.SliderMax.Value
     } : null);
 }
Exemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LeftImageMinMaxTexCoodSlider = ((Ajubaa.IBModeler.UI.Main.SliderForAdjustSkin)(target));
                return;

            case 2:
                this.RightImageMinMaxTexCoodSlider = ((Ajubaa.IBModeler.UI.Main.SliderForAdjustSkin)(target));
                return;

            case 3:
                this.FrontImageMinMaxTexCoodSlider = ((Ajubaa.IBModeler.UI.Main.SliderForAdjustSkin)(target));
                return;

            case 4:
                this.BackImageMinMaxTexCoodSlider = ((Ajubaa.IBModeler.UI.Main.SliderForAdjustSkin)(target));
                return;

            case 5:
                this.HelpButton = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\..\AdjustSkin.xaml"
                this.HelpButton.Click += new System.Windows.RoutedEventHandler(this.HelpButtonClicked);

            #line default
            #line hidden
                return;

            case 6:
                this.AddSkinButton = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\..\AdjustSkin.xaml"
                this.AddSkinButton.Click += new System.Windows.RoutedEventHandler(this.SaveClicked);

            #line default
            #line hidden
                return;

            case 7:
                this.CancelButton = ((System.Windows.Controls.Button)(target));

            #line 47 "..\..\..\AdjustSkin.xaml"
                this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButtonClicked);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 3
0
        private static void SetPreviouslyDefinedValues(MinAndMaxTexCoodValueLimits previouslyDefinedValues, SliderForAdjustSkin slider)
        {
            if (previouslyDefinedValues == null || slider == null)
            {
                return;
            }

            slider.SliderMin.Value = previouslyDefinedValues.Min;
            slider.SliderMax.Value = previouslyDefinedValues.Max;
        }