Пример #1
0
        private void btnViewmore1_Unloaded(object sender, RoutedEventArgs e)
        {
            ColorPickerView2 o_ColorPickerView2 = sender as ColorPickerView2;

            currentBackground = o_ColorPickerView2.CurrentColor;
            Rectangle recColor      = (Rectangle)btnColor7.Content;
            Rectangle recBackground = (Rectangle)btnBackground.Content;

            recColor.Fill      = currentBackground;
            recBackground.Fill = currentBackground;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.grdColorPicker = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.btnBackground = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\..\Views\ColorPicker.xaml"
                this.btnBackground.Click += new System.Windows.RoutedEventHandler(this.btnBackground_Checked);

            #line default
            #line hidden
                return;

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

            #line 21 "..\..\..\Views\ColorPicker.xaml"
                this.btnForeground.Click += new System.Windows.RoutedEventHandler(this.btnForeground_Checked);

            #line default
            #line hidden
                return;

            case 4:
                this.grdRecentlyUsedColors = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 49 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor1.Click += new System.Windows.RoutedEventHandler(this.btnColor_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 49 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor1.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.btnColor_MouseRightButtonUp);

            #line default
            #line hidden
                return;

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

            #line 52 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor2.Click += new System.Windows.RoutedEventHandler(this.btnColor_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 52 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor2.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.btnColor_MouseRightButtonUp);

            #line default
            #line hidden
                return;

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

            #line 55 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor3.Click += new System.Windows.RoutedEventHandler(this.btnColor_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 55 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor3.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.btnColor_MouseRightButtonUp);

            #line default
            #line hidden
                return;

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

            #line 58 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor4.Click += new System.Windows.RoutedEventHandler(this.btnColor_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 58 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor4.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.btnColor_MouseRightButtonUp);

            #line default
            #line hidden
                return;

            case 9:
                this.btnColor5 = ((System.Windows.Controls.Button)(target));

            #line 61 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor5.Click += new System.Windows.RoutedEventHandler(this.btnColor_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 61 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor5.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.btnColor_MouseRightButtonUp);

            #line default
            #line hidden
                return;

            case 10:
                this.btnColor6 = ((System.Windows.Controls.Button)(target));

            #line 64 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor6.Click += new System.Windows.RoutedEventHandler(this.btnColor_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 64 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor6.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.btnColor_MouseRightButtonUp);

            #line default
            #line hidden
                return;

            case 11:
                this.btnColor7 = ((System.Windows.Controls.Button)(target));

            #line 67 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor7.Click += new System.Windows.RoutedEventHandler(this.btnColor_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 67 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor7.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.btnColor_MouseRightButtonUp);

            #line default
            #line hidden
                return;

            case 12:
                this.btnColor8 = ((System.Windows.Controls.Button)(target));

            #line 70 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor8.Click += new System.Windows.RoutedEventHandler(this.btnColor_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 70 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor8.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.btnColor_MouseRightButtonUp);

            #line default
            #line hidden
                return;

            case 13:
                this.btnColor9 = ((System.Windows.Controls.Button)(target));

            #line 73 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor9.Click += new System.Windows.RoutedEventHandler(this.btnColor_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 73 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor9.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.btnColor_MouseRightButtonUp);

            #line default
            #line hidden
                return;

            case 14:
                this.btnColor10 = ((System.Windows.Controls.Button)(target));

            #line 76 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor10.Click += new System.Windows.RoutedEventHandler(this.btnColor_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 76 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor10.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.btnColor_MouseRightButtonUp);

            #line default
            #line hidden
                return;

            case 15:
                this.btnColor11 = ((System.Windows.Controls.Button)(target));

            #line 79 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor11.Click += new System.Windows.RoutedEventHandler(this.btnColor_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 79 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor11.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.btnColor_MouseRightButtonUp);

            #line default
            #line hidden
                return;

            case 16:
                this.btnColor12 = ((System.Windows.Controls.Button)(target));

            #line 82 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor12.Click += new System.Windows.RoutedEventHandler(this.btnColor_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 82 "..\..\..\Views\ColorPicker.xaml"
                this.btnColor12.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.btnColor_MouseRightButtonUp);

            #line default
            #line hidden
                return;

            case 17:
                this.btnViewMore = ((WPFColorPicker.ColorPickerView1)(target));
                return;

            case 18:
                this.btnViewmore1 = ((WPFColorPicker.ColorPickerView2)(target));
                return;
            }
            this._contentLoaded = true;
        }