Example #1
0
        private static void OnAnimatedBitmapChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            AnimatedImage control = (AnimatedImage)obj;

            control.UpdateAnimatedBitmap();

            RoutedPropertyChangedEventArgs <Bitmap> e = new RoutedPropertyChangedEventArgs <Bitmap>(
                (Bitmap)args.OldValue, (Bitmap)args.NewValue, AnimatedBitmapChangedEvent);

            control.OnAnimatedBitmapChanged(e);
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\MainWindow.xaml"
                ((GrapeCity.Tools.ComponentOneControlPanel.MainWindow)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDown);

            #line default
            #line hidden
                return;

            case 2:
                this.bannerGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 29 "..\..\MainWindow.xaml"
                this.closeBtn.Click += new System.Windows.RoutedEventHandler(this.CloseApp);

            #line default
            #line hidden
                return;

            case 4:
                this.bannerPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 5:
                this.nonProgressBrdr = ((System.Windows.Controls.Border)(target));
                return;

            case 6:
                this.level1Panel = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            #line 48 "..\..\MainWindow.xaml"
                this.productsButtonLevel1.Click += new System.Windows.RoutedEventHandler(this.Level1_Click);

            #line default
            #line hidden
                return;

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

            #line 49 "..\..\MainWindow.xaml"
                this.activitiesButtonLevel1.Click += new System.Windows.RoutedEventHandler(this.Level1_Click);

            #line default
            #line hidden
                return;

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

            #line 50 "..\..\MainWindow.xaml"
                this.licenseButtonLevel1.Click += new System.Windows.RoutedEventHandler(this.Level1_Click);

            #line default
            #line hidden
                return;

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

            #line 51 "..\..\MainWindow.xaml"
                this.supportButtonLevel1.Click += new System.Windows.RoutedEventHandler(this.Level1_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.level2Panel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 12:
                this.headerTxt = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.contentGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 14:
                this.prgrsBrdr = ((System.Windows.Controls.Border)(target));
                return;

            case 15:
                this.progControl = ((GrapeCity.Tools.ComponentOneControlPanel.Controls.AnimatedImage)(target));
                return;

            case 16:
                this.msgBorderMain = ((System.Windows.Controls.Border)(target));
                return;

            case 17:
                this.msgBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 18:

            #line 92 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseMessage);

            #line default
            #line hidden
                return;

            case 19:
                this.messageBlk = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:

            #line 119 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CopyMessage);

            #line default
            #line hidden
                return;

            case 21:
                this.vrsntxtblk = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 22:
                this.contactusblock = ((System.Windows.Controls.TextBlock)(target));

            #line 146 "..\..\MainWindow.xaml"
                this.contactusblock.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.contactusblock_MouseLeftButtonDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }