Example #1
0
 public TabBar(bool visible, bool collapsed, bool showStartTab)
 {
     this._visible      = visible;
     this._collapsed    = collapsed;
     this._showStartTab = showStartTab;
     _ctrl = null;
 }
Example #2
0
        private void ribbonButton3_Click(object sender, EventArgs e)
        {
            NuGenMediImageCtrl ngMediImage = (NuGenMediImageCtrl)parent;

            ngMediImage.ZoomBoxSize = new Size(150, 150);
            this.Close();
        }
Example #3
0
 public ThumbnailViewer(bool visible, bool collapsed, bool showBrowseButton, ThumbnailFileType thumbnailFileType)
 {
     this._visible           = visible;
     this._collapsed         = collapsed;
     this._showBrowseButton  = showBrowseButton;
     this._thumbnailFileType = thumbnailFileType;
     _ctrl = null;
 }
Example #4
0
        public OverLayMenu(NuGenMediImageCtrl parent)
        {
            InitializeComponent();
            this.parent = parent;

            this.ribbonButton2.NgMediImage = this.parent;
            this.ribbonButton3.NgMediImage = this.parent;
        }        
Example #5
0
        private void ribbonButton2_Click(object sender, EventArgs e)
        {
            int level = int.Parse(((RibbonButton)sender).Text);
            NuGenMediImageCtrl ngMediImage = (NuGenMediImageCtrl)parent;

            ngMediImage.ZoomBoxZoom = level;
            this.Close();
        }
Example #6
0
        private void ribbonButton2_Click(object sender, EventArgs e)
        {
            NuGenMediImageCtrl ngMediImage = (NuGenMediImageCtrl)parent;

            ngMediImage.OverLayColor = Color.Black;

            this.Close();
        }
Example #7
0
        public OverLayMenu(NuGenMediImageCtrl parent)
        {
            InitializeComponent();
            this.parent = parent;

            this.ribbonButton2.NgMediImage = this.parent;
            this.ribbonButton3.NgMediImage = this.parent;
        }
Example #8
0
        public MeasurementUnitsMenu(NuGenMediImageCtrl parent)
        {
            InitializeComponent();
            this.parent = parent;

            this.ribbonButton1.NgMediImage = this.parent;
            this.ribbonButton2.NgMediImage = this.parent;
            this.ribbonButton3.NgMediImage = this.parent;
            this.ribbonButton4.NgMediImage = this.parent;
        }
Example #9
0
        private void ribbonButton3_Click(object sender, EventArgs e)
        {
            Application.DoEvents();
            NuGenMediImageCtrl ngMediImage = (NuGenMediImageCtrl)parent;

            ngMediImage.OverLayColor = Color.White;

            Application.DoEvents();
            this.Close();
        }
Example #10
0
        private void ribbonButton2_Click(object sender, EventArgs e)
        {
            selectedLUT = ((RibbonButton)sender).Text;
            NuGenMediImageCtrl ngMediImage = (NuGenMediImageCtrl)parent;

            //ngMediImage.ClearLUT();
            this.Hide();
            ngMediImage.ReadAndApplyLUT(selectedLUT);
            Application.DoEvents();
            this.Close();
        }
Example #11
0
        private void ribbonButton2_Click(object sender, EventArgs e)
        {
            Application.DoEvents();
            selectedUnit = (MeasurementUnits)Enum.Parse(typeof(MeasurementUnits), ((RibbonButton)sender).Text, true);

            NuGenMediImageCtrl ngMediImage = (NuGenMediImageCtrl)parent;

            ngMediImage.MeasurementUnits = selectedUnit;
            Application.DoEvents();
            this.Close();
        }
        public MeasurementUnitsMenu(NuGenMediImageCtrl parent)
        {
            InitializeComponent();
            this.parent = parent;

            this.ribbonButton1.NgMediImage = this.parent;
            this.ribbonButton2.NgMediImage = this.parent;
            this.ribbonButton3.NgMediImage = this.parent;
            this.ribbonButton4.NgMediImage = this.parent;
            
        }        
Example #13
0
        public PhotoMenu(NuGenMediImageCtrl parent)
        {
            mbc = new MenuButtonCollection(this.flowLayoutPanel1);
            mbc.CollectionChanged += new EventHandler(mbc_CollectionChanged);
            InitializeComponent();
            this.parent = parent;
            ngMediImage = (NuGenMediImageCtrl)this.parent;

            this.btnExit.NgMediImage       = ngMediImage;
            this.btnHelp.NgMediImage       = ngMediImage;
            this.btnPrint.NgMediImage      = ngMediImage;
            this.btnSaveAs.NgMediImage     = ngMediImage;
            this.btnLoad.NgMediImage       = ngMediImage;
            this.ribbonButton6.NgMediImage = ngMediImage;

            this.flowLayoutPanel1.ControlAdded   += new ControlEventHandler(flowLayoutPanel1_ControlAdded);
            this.flowLayoutPanel1.ControlRemoved += new ControlEventHandler(flowLayoutPanel1_ControlRemoved);
            SizeMenu();
        }
Example #14
0
        public PhotoMenu(NuGenMediImageCtrl parent)
        {
        	mbc = new MenuButtonCollection(this.flowLayoutPanel1);
        	mbc.CollectionChanged+= new EventHandler(mbc_CollectionChanged);
            InitializeComponent();
            this.parent = parent;
            ngMediImage = (NuGenMediImageCtrl)this.parent;

            this.btnExit.NgMediImage = ngMediImage;
            this.btnHelp.NgMediImage = ngMediImage;
            this.btnPrint.NgMediImage = ngMediImage;
            this.btnSaveAs.NgMediImage = ngMediImage;
            this.btnLoad.NgMediImage = ngMediImage;
            this.ribbonButton6.NgMediImage = ngMediImage;

            this.flowLayoutPanel1.ControlAdded += new ControlEventHandler(flowLayoutPanel1_ControlAdded);
            this.flowLayoutPanel1.ControlRemoved += new ControlEventHandler(flowLayoutPanel1_ControlRemoved);
            SizeMenu();
            
        }
Example #15
0
        public LutMenu(NuGenMediImageCtrl parent)
        {
            InitializeComponent();
            this.parent = parent;

            ribbonButton1.NgMediImage  = this.parent;
            ribbonButton2.NgMediImage  = this.parent;
            ribbonButton3.NgMediImage  = this.parent;
            ribbonButton4.NgMediImage  = this.parent;
            ribbonButton5.NgMediImage  = this.parent;
            ribbonButton6.NgMediImage  = this.parent;
            ribbonButton7.NgMediImage  = this.parent;
            ribbonButton8.NgMediImage  = this.parent;
            ribbonButton9.NgMediImage  = this.parent;
            ribbonButton10.NgMediImage = this.parent;
            ribbonButton11.NgMediImage = this.parent;
            ribbonButton12.NgMediImage = this.parent;
            ribbonButton13.NgMediImage = this.parent;
            ribbonButton14.NgMediImage = this.parent;
            ribbonButton15.NgMediImage = this.parent;
        }
Example #16
0
        public LutMenu(NuGenMediImageCtrl parent)
        {
            InitializeComponent();
            this.parent = parent;

            ribbonButton1.NgMediImage = this.parent;
            ribbonButton2.NgMediImage = this.parent;
            ribbonButton3.NgMediImage = this.parent;
            ribbonButton4.NgMediImage = this.parent;
            ribbonButton5.NgMediImage = this.parent;
            ribbonButton6.NgMediImage = this.parent;
            ribbonButton7.NgMediImage = this.parent;
            ribbonButton8.NgMediImage = this.parent;
            ribbonButton9.NgMediImage = this.parent;
            ribbonButton10.NgMediImage = this.parent;
            ribbonButton11.NgMediImage = this.parent;
            ribbonButton12.NgMediImage = this.parent;
            ribbonButton13.NgMediImage = this.parent;
            ribbonButton14.NgMediImage = this.parent;
            ribbonButton15.NgMediImage = this.parent;
            
        }        
Example #17
0
 public DlgEmboss(NuGenMediImageCtrl ngMediImage)
 {
     this.ngMediImage = ngMediImage;
     InitializeComponent();
 }
Example #18
0
 public DlgEmboss(NuGenMediImageCtrl ngMediImage)
 {
     this.ngMediImage = ngMediImage;
     InitializeComponent();
 }
Example #19
0
 public SliceViewer(bool visible, bool collapsed)
 {
     this._visible   = visible;
     this._collapsed = collapsed;
     _ctrl           = null;
 }