예제 #1
0
 /// <summary>
 /// Initializes a new instance of the ViewImageController class
 /// </summary>
 /// <param name="doc">Document attached to Object</param>
 /// <param name="view">View attached to Object</param>
 public ViewImageController(Document doc, ViewImage view)
     : base(doc, view)
 {
     this.viewImage = view;
 }
예제 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.view2D = ((Novartis.Msi.Core.ViewImage)(target));

            #line 19 "..\..\ViewImage.xaml"
                this.view2D.Loaded += new System.Windows.RoutedEventHandler(this.ViewImageLoaded);

            #line default
            #line hidden

            #line 21 "..\..\ViewImage.xaml"
                this.view2D.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.ViewImageMouseWheel);

            #line default
            #line hidden

            #line 21 "..\..\ViewImage.xaml"
                this.view2D.KeyDown += new System.Windows.Input.KeyEventHandler(this.ViewImageKeyDown);

            #line default
            #line hidden

            #line 21 "..\..\ViewImage.xaml"
                this.view2D.KeyUp += new System.Windows.Input.KeyEventHandler(this.ViewImageKeyUp);

            #line default
            #line hidden

            #line 21 "..\..\ViewImage.xaml"
                this.view2D.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ViewImageLeftMouseDown);

            #line default
            #line hidden

            #line 21 "..\..\ViewImage.xaml"
                this.view2D.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.WindowPreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:

            #line 24 "..\..\ViewImage.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OnCmdNewRoi);

            #line default
            #line hidden
                return;

            case 3:

            #line 25 "..\..\ViewImage.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OnCmdFixRoi);

            #line default
            #line hidden
                return;

            case 4:

            #line 26 "..\..\ViewImage.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OnCmdCloseRoi);

            #line default
            #line hidden
                return;

            case 5:

            #line 27 "..\..\ViewImage.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OnCmdDeleteRoi);

            #line default
            #line hidden
                return;

            case 6:

            #line 28 "..\..\ViewImage.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OnCmdEditRoi);

            #line default
            #line hidden
                return;

            case 7:

            #line 29 "..\..\ViewImage.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OnCmdZoom);

            #line default
            #line hidden
                return;

            case 8:

            #line 30 "..\..\ViewImage.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OnCmdViewRoiDataCommand);

            #line default
            #line hidden
                return;

            case 9:
                this.border = ((System.Windows.Controls.Border)(target));
                return;

            case 10:
                this.drawingArea = ((System.Windows.Controls.Canvas)(target));

            #line 46 "..\..\ViewImage.xaml"
                this.drawingArea.Loaded += new System.Windows.RoutedEventHandler(this.DrawingAreaLoaded);

            #line default
            #line hidden

            #line 46 "..\..\ViewImage.xaml"
                this.drawingArea.SizeChanged += new System.Windows.SizeChangedEventHandler(this.DrawingAreaSizeChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.imageCtrl = ((System.Windows.Controls.Image)(target));

            #line 48 "..\..\ViewImage.xaml"
                this.imageCtrl.MouseEnter += new System.Windows.Input.MouseEventHandler(this.ImageCtrlMouseEnter);

            #line default
            #line hidden

            #line 48 "..\..\ViewImage.xaml"
                this.imageCtrl.MouseLeave += new System.Windows.Input.MouseEventHandler(this.ImageCtrlMouseLeave);

            #line default
            #line hidden

            #line 48 "..\..\ViewImage.xaml"
                this.imageCtrl.MouseMove += new System.Windows.Input.MouseEventHandler(this.ImageCtrlMouseMove);

            #line default
            #line hidden

            #line 48 "..\..\ViewImage.xaml"
                this.imageCtrl.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ImageCtrlMouseLeftButtonDown);

            #line default
            #line hidden

            #line 48 "..\..\ViewImage.xaml"
                this.imageCtrl.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ImageCtrlMouseLeftButtonUp);

            #line default
            #line hidden

            #line 48 "..\..\ViewImage.xaml"
                this.imageCtrl.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ImageCtrlMouseRightButtonDown);

            #line default
            #line hidden
                return;

            case 12:
                this.ROIContextMenu = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 13:
                this.mnuNew = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 14:
                this.mnuClose = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 15:
                this.mnuFix = ((System.Windows.Controls.MenuItem)(target));

            #line 53 "..\..\ViewImage.xaml"
                this.mnuFix.MouseEnter += new System.Windows.Input.MouseEventHandler(this.MenuItemMouseEnter);

            #line default
            #line hidden
                return;

            case 16:
                this.mnuDelete = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 17:
                this.mnuEdit = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 18:
                this.mnuViewRoiData = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 19:
                this.mnuZoom = ((System.Windows.Controls.MenuItem)(target));
                return;
            }
            this._contentLoaded = true;
        }