Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.gridLayout = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.menu = ((System.Windows.Controls.ContextMenu)(target));

            #line 16 "..\..\..\..\Views\Controls\ChatImage.xaml"
                this.menu.AddHandler(System.Windows.Controls.MenuItem.ClickEvent, new System.Windows.RoutedEventHandler(this.ContextMenu_Click));

            #line default
            #line hidden

            #line 16 "..\..\..\..\Views\Controls\ChatImage.xaml"
                this.menu.Opened += new System.Windows.RoutedEventHandler(this.menu_Opened);

            #line default
            #line hidden
                return;

            case 3:
                this.Forward = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 4:
                this.pathResend = ((System.Windows.Shapes.Path)(target));
                return;

            case 5:
                this.img = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.imgGif = ((IM.Emoje.Controls.GifImage)(target));
                return;

            case 7:
                this.gridFail = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.tbLoadFail = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.gridLoading = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.aniLoading = ((IMClient.Views.Controls.AnimationLoading)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.gridLayout = ((System.Windows.Controls.Grid)(target));

            #line 15 "..\..\..\..\Views\ChildWindows\ImageScanWindow.xaml"
                this.gridLayout.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.Grid_Click));

            #line default
            #line hidden
                return;

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

            case 3:
                this.btnMax = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 4:
                this.btnClose = ((System.Windows.Controls.Button)(target));
                return;

            case 5:
                this.gridView = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.gridScan = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:
                this.scale = ((System.Windows.Media.ScaleTransform)(target));
                return;

            case 8:
                this.translate = ((System.Windows.Media.TranslateTransform)(target));
                return;

            case 9:
                this.rotate = ((System.Windows.Media.RotateTransform)(target));
                return;

            case 10:
                this.img = ((IM.Emoje.Controls.GifImage)(target));
                return;

            case 11:
                this.thumb = ((System.Windows.Controls.Primitives.Thumb)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #3
0
        private static void OnSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GifImage gif = (GifImage)d;

            gif.LoadGif(string.Format("{0}", e.NewValue));
        }
Exemple #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.gridLayout = ((System.Windows.Controls.Grid)(target));

            #line 68 "..\..\..\..\Views\ChildWindows\ImageScanWindow.xaml"
                this.gridLayout.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new System.Windows.RoutedEventHandler(this.Grid_Click));

            #line default
            #line hidden
                return;

            case 2:
                this.tbName = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

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

            case 6:
                this.gridView = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:
                this.gridScan = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.scale = ((System.Windows.Media.ScaleTransform)(target));
                return;

            case 9:
                this.translate = ((System.Windows.Media.TranslateTransform)(target));
                return;

            case 10:
                this.rotate = ((System.Windows.Media.RotateTransform)(target));
                return;

            case 11:
                this.img = ((IM.Emoje.Controls.GifImage)(target));
                return;

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

            case 13:
                this.thumb = ((System.Windows.Controls.Primitives.Thumb)(target));
                return;

            case 14:
                this.gridOperate = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 111 "..\..\..\..\Views\ChildWindows\ImageScanWindow.xaml"
                this.btnPerImg.Click += new System.Windows.RoutedEventHandler(this.btnPerImg_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.pathPer = ((System.Windows.Shapes.Path)(target));
                return;

            case 17:
                this.btnNextImg = ((System.Windows.Controls.Button)(target));

            #line 117 "..\..\..\..\Views\ChildWindows\ImageScanWindow.xaml"
                this.btnNextImg.Click += new System.Windows.RoutedEventHandler(this.btnNextImg_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.pathNext = ((System.Windows.Shapes.Path)(target));
                return;

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

            case 20:
                this.loading = ((System.Windows.Controls.Border)(target));
                return;
            }
            this._contentLoaded = true;
        }