Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((PicEditor.MainWindow)(target));
                return;

            case 2:
                this.frame = ((System.Windows.Controls.Frame)(target));
                return;

            case 3:
                this.tb = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.pic = ((PicControls.PictureControl)(target));

            #line 187 "..\..\..\View\MainWindow.xaml"
                this.pic.KeyDown += new System.Windows.Input.KeyEventHandler(this.pic_KeyDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.pictureControl = ((PicControls.PictureControl)(target));

            #line 12 "..\..\PictureControl.xaml"
                this.pictureControl.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.pictureControl_MouseDown);

            #line default
            #line hidden

            #line 13 "..\..\PictureControl.xaml"
                this.pictureControl.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.pictureControl_MouseWheel);

            #line default
            #line hidden

            #line 14 "..\..\PictureControl.xaml"
                this.pictureControl.MouseMove += new System.Windows.Input.MouseEventHandler(this.pictureControl_MouseMove);

            #line default
            #line hidden

            #line 15 "..\..\PictureControl.xaml"
                this.pictureControl.Loaded += new System.Windows.RoutedEventHandler(this.pictureControl_Loaded);

            #line default
            #line hidden

            #line 16 "..\..\PictureControl.xaml"
                this.pictureControl.Initialized += new System.EventHandler(this.pictureControl_Initialized);

            #line default
            #line hidden
                return;

            case 2:

            #line 20 "..\..\PictureControl.xaml"
                ((System.Windows.Shapes.Rectangle)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 3:
                this.image = ((System.Windows.Controls.Image)(target));

            #line 28 "..\..\PictureControl.xaml"
                this.image.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.image_MouseLeftButtonDown);

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