Beispiel #1
0
        // When plugin is initialized
        public override void OnInitialize()
        {
            // Setup
            me = this;

            // Settings
            showvisualthings = 2;
            usegravity       = false;
            usehighlight     = true;
            LoadSettings();

            // Load menus form and register it
            menusform = new MenusForm();
            menusform.Register();

            // Load curve linedefs form
            curvelinedefsform = new CurveLinedefsForm();

            // Load find/replace form
            findreplaceform = new FindReplaceForm();

            // Load error checking form
            errorcheckform = new ErrorCheckForm();

            // villsa
            sectorlights = new Lights[5];

            // Load Undo\Redo docker
            undoredopanel  = new UndoRedoPanel();
            undoredodocker = new Docker("undoredo", "Undo / Redo", undoredopanel);
            General.Interface.AddDocker(undoredodocker);
        }
Beispiel #2
0
        // Disposer
        public override void Dispose()
        {
            // Not already disposed?
            if (!IsDisposed)
            {
                // Clean up
                General.Interface.RemoveDocker(undoredodocker);
                undoredopanel.Dispose();
                menusform.Unregister();
                menusform.Dispose();
                menusform = null;
                curvelinedefsform.Dispose();
                curvelinedefsform = null;
                findreplaceform.Dispose();
                findreplaceform = null;
                errorcheckform.Dispose();
                errorcheckform = null;

                // Done
                me = null;
                base.Dispose();
            }
        }
Beispiel #3
0
        // Disposer
        public override void Dispose()
        {
            // Not already disposed?
            if (!IsDisposed)
            {
                // Clean up
                General.Interface.RemoveDocker(undoredodocker);

                undoredopanel.Dispose();
                drawingOverridesPanel.Dispose();                 //mxd
                menusform.Unregister();
                menusform.Dispose();
                menusform = null;

                //mxd. These are created on demand, so they may be nulls.
                if (curvelinedefsform != null)
                {
                    curvelinedefsform.Dispose();
                    curvelinedefsform = null;
                }
                if (findreplaceform != null)
                {
                    findreplaceform.Dispose();
                    findreplaceform = null;
                }
                if (errorcheckform != null)
                {
                    errorcheckform.Dispose();
                    errorcheckform = null;
                }

                // Done
                me = null;
                base.Dispose();
            }
        }