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; }
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; }