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

            // Load menus form
            menusForm = new MenusForm();

            General.Actions.BindMethods(this);
        }
Exemple #2
0
        // Disposer
        public override void Dispose()
        {
            // Not already disposed?
            if (!IsDisposed)
            {
                menusForm.Unregister();
                menusForm.Dispose();
                menusForm = null;

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