Exemplo n.º 1
0
        /// <summary>
        /// Called by CKAN at load to set up the plugin.
        /// </summary>
        public override void Initialize()
        {
            // Give the tab a name and set the text that will show to the user.
            var tabPage = new TabPage { Name = "ShipManager", Text = "Ship Manager" };

            // Set the user control from this plugin to fill then add to the tab.
            _mUi = new PluginUi { Dock = DockStyle.Fill };
            tabPage.Controls.Add(_mUi);

            // Setup the callback, and add the tab to the CKAN tab controller.
            //Main.modChangedCallback += _mUi.OnModChanged;
            Main.Instance.m_TabController.m_TabPages.Add("ShipManager", tabPage);
            Main.Instance.m_TabController.ShowTab("ShipManager", 1, false);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Called by CKAN at load to set up the plugin.
        /// </summary>
        public override void Initialize()
        {
            // Give the tab a name and set the text that will show to the user.
            var tabPage = new TabPage {
                Name = "ShipManager", Text = "Ship Manager"
            };

            // Set the user control from this plugin to fill then add to the tab.
            _mUi = new PluginUi {
                Dock = DockStyle.Fill
            };
            tabPage.Controls.Add(_mUi);

            // Setup the callback, and add the tab to the CKAN tab controller.
            //Main.modChangedCallback += _mUi.OnModChanged;
            Main.Instance.m_TabController.m_TabPages.Add("ShipManager", tabPage);
            Main.Instance.m_TabController.ShowTab("ShipManager", 1, false);
        }