Example #1
0
 private static void RoiAnalysisShelf_Closed(object sender, ClosedEventArgs e)
 {
     // note that the component is thrown away when the shelf is closed by the user
     _roiAnalysisShelf.Closed -= RoiAnalysisShelf_Closed;
     _roiAnalysisShelf         = null;
     _roiAnalysisComponent     = null;
 }
Example #2
0
        /// <summary>
        /// Shows the ROI Histogram component in a shelf.  Only one ROI Histogram component will ever be shown
		/// at a time, so if there is already an ROI Histogram component showing, this method does nothing
        /// </summary>
        public void Show()
		{
            // check if a layout component is already displayed
			if (_roiAnalysisComponent == null)
            {
                // create and initialize the layout component
				_roiAnalysisComponent = new RoiAnalysisComponentContainer(this.Context);
				
                // launch the layout component in a shelf
				_roiAnalysisShelf = ApplicationComponent.LaunchAsShelf(
                    this.Context.DesktopWindow,
					_roiAnalysisComponent,
                    SR.Title,
                    ShelfDisplayHint.DockLeft);

				_roiAnalysisShelf.Closed += RoiAnalysisShelf_Closed;
            }
        }
Example #3
0
        /// <summary>
        /// Shows the ROI Histogram component in a shelf.  Only one ROI Histogram component will ever be shown
        /// at a time, so if there is already an ROI Histogram component showing, this method does nothing
        /// </summary>
        public void Show()
        {
            // check if a layout component is already displayed
            if (_roiAnalysisComponent == null)
            {
                // create and initialize the layout component
                _roiAnalysisComponent = new RoiAnalysisComponentContainer(this.Context);

                // launch the layout component in a shelf
                _roiAnalysisShelf = ApplicationComponent.LaunchAsShelf(
                    this.Context.DesktopWindow,
                    _roiAnalysisComponent,
                    SR.Title,
                    ShelfDisplayHint.DockLeft);

                _roiAnalysisShelf.Closed += RoiAnalysisShelf_Closed;
            }
        }
Example #4
0
		private static void RoiAnalysisShelf_Closed(object sender, ClosedEventArgs e) {
			// note that the component is thrown away when the shelf is closed by the user
			_roiAnalysisShelf.Closed -= RoiAnalysisShelf_Closed;
			_roiAnalysisShelf = null;
			_roiAnalysisComponent = null;
		}