Ejemplo n.º 1
0
        public LinearScaleTool(string name, MosaicWindow window)
            :
            base(name, window, "Resources.scale_icon.ico")
        {
            this.form              = new LinearScaleForm(window);
            this.form.FormClosing += new FormClosingEventHandler(OnLinearScalingFormClosing);

            this.MosaicWindow.MosaicLoaded += new MosaicWindowHandler <MosaicWindow, MosaicWindowEventArgs>(OnMosaicLoaded);

            this.menuItem = AddMenuItem("Display", "Linear Scale", null, new EventHandler(OnCheckedChanged));

            this.menuItem.Enabled = false;
        }
Ejemplo n.º 2
0
        public LinearScaleTool(string name, MosaicWindow window)
            : base(name, window, "Resources.scale_icon.ico")
        {
            this.form = new LinearScaleForm(window);
            this.form.FormClosing += new FormClosingEventHandler(OnLinearScalingFormClosing);

            this.MosaicWindow.MosaicLoaded += new MosaicWindowHandler<MosaicWindow, MosaicWindowEventArgs>(OnMosaicLoaded);

            this.menuItem = AddMenuItem("Display", "Linear Scale", null, new EventHandler(OnCheckedChanged));

            this.menuItem.Enabled = false;
        }