public RGBBalanceTool(string name, MosaicWindow window)
            :
            base(name, window, "Resources.scale_icon.ico")
        {
            this.form              = new RGBBalanceForm(window);
            this.form.FormClosing += new FormClosingEventHandler(OnLinearScalingFormClosing);

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

            this.menuItem = AddMenuItem("Display", "RGB Balance", null, new EventHandler(OnCheckedChanged));

            this.menuItem.Enabled = false;
        }
예제 #2
0
        public RGBBalanceTool(string name, MosaicWindow window)
            : base(name, window, "Resources.scale_icon.ico")
        {
            this.form = new RGBBalanceForm(window);
            this.form.FormClosing += new FormClosingEventHandler(OnLinearScalingFormClosing);

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

            this.menuItem = AddMenuItem("Display", "RGB Balance", null, new EventHandler(OnCheckedChanged));

            this.menuItem.Enabled = false;
        }