Пример #1
0
        public void Initialize(IPluginContext2 context)
        {
            //Save the plugin context so we can access ASE objects later
            this._Context = context;

            ToolStripButton btn = new ToolStripButton("Open ASE Editor");
            this._Context.MainMenu.Items.Add(btn);
            btn.Click += btn_Click;

            this._CodeWindow = new ASECodeEditorWindow();

            this._CodeWindow.PluginContext = context;

            this._CodeWindow.Show(this._Context.DockPanel,
                WeifenLuo.WinFormsUI.Docking.DockState.DockRight);
        }
        public void Initialize(IPluginContext2 context)
        {
            //Save the plugin context so we can access ASE objects later
            this._Context = context;

            ToolStripButton btn = new ToolStripButton("Open ASE Editor");

            this._Context.MainMenu.Items.Add(btn);
            btn.Click += btn_Click;

            this._CodeWindow = new ASECodeEditorWindow();

            this._CodeWindow.PluginContext = context;

            this._CodeWindow.Show(this._Context.DockPanel,
                                  WeifenLuo.WinFormsUI.Docking.DockState.DockRight);
        }