Example #1
0
        private static void OnSelectedColorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ColorPickerFull cpf = (ColorPickerFull)d;

            cpf.colorSelector.Color = (Color)e.NewValue;
            if (cpf.SelectedColorChanged != null)
            {
                cpf.SelectedColorChanged(cpf, new EventArgs <Color>((Color)e.NewValue));
            }
        }
Example #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.brStColor = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     
     #line 16 "..\..\..\Dialogs\ColorDialog.xaml"
     this.brStColor.Click += new System.Windows.RoutedEventHandler(this.brStColor_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     this.rectStCol = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 3:
     this.btSwpColor = ((System.Windows.Controls.Button)(target));
     
     #line 22 "..\..\..\Dialogs\ColorDialog.xaml"
     this.btSwpColor.Click += new System.Windows.RoutedEventHandler(this.btSwpColor_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.btEndColor = ((System.Windows.Controls.Primitives.ToggleButton)(target));
     
     #line 23 "..\..\..\Dialogs\ColorDialog.xaml"
     this.btEndColor.Click += new System.Windows.RoutedEventHandler(this.btEndColor_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.rectEnCol = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 6:
     this.colorPickerFull = ((LEDX.Components.ColorPickerControls.ColorPickerFull)(target));
     return;
     case 7:
     this.btOk = ((System.Windows.Controls.Button)(target));
     
     #line 34 "..\..\..\Dialogs\ColorDialog.xaml"
     this.btOk.Click += new System.Windows.RoutedEventHandler(this.btOk_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.btCancel = ((System.Windows.Controls.Button)(target));
     
     #line 35 "..\..\..\Dialogs\ColorDialog.xaml"
     this.btCancel.Click += new System.Windows.RoutedEventHandler(this.btCancel_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.cbClrSend = ((System.Windows.Controls.CheckBox)(target));
     return;
     }
     this._contentLoaded = true;
 }
Example #3
0
        private static void OnInitialColorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ColorPickerFull cpf = (ColorPickerFull)d;

            cpf.newCurrent.CurrentColor = (Color)e.NewValue;
        }
Example #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.brStColor = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 16 "..\..\..\Dialogs\ColorDialog.xaml"
                this.brStColor.Click += new System.Windows.RoutedEventHandler(this.brStColor_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.rectStCol = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 3:
                this.btSwpColor = ((System.Windows.Controls.Button)(target));

            #line 22 "..\..\..\Dialogs\ColorDialog.xaml"
                this.btSwpColor.Click += new System.Windows.RoutedEventHandler(this.btSwpColor_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.btEndColor = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 23 "..\..\..\Dialogs\ColorDialog.xaml"
                this.btEndColor.Click += new System.Windows.RoutedEventHandler(this.btEndColor_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.rectEnCol = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 6:
                this.colorPickerFull = ((LEDX.Components.ColorPickerControls.ColorPickerFull)(target));
                return;

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

            #line 34 "..\..\..\Dialogs\ColorDialog.xaml"
                this.btOk.Click += new System.Windows.RoutedEventHandler(this.btOk_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.btCancel = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\..\Dialogs\ColorDialog.xaml"
                this.btCancel.Click += new System.Windows.RoutedEventHandler(this.btCancel_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.cbClrSend = ((System.Windows.Controls.CheckBox)(target));
                return;
            }
            this._contentLoaded = true;
        }