public override void Initialize() { var tabPage = new TabPage {Name = "Part Manager", Text = "Part Manager"}; _mUi = new PartManagerUI {Dock = DockStyle.Fill}; tabPage.Controls.Add(_mUi); Main.modChangedCallback += _mUi.OnModChanged; Main.Instance.m_TabController.m_TabPages.Add("Part Manager", tabPage); Main.Instance.m_TabController.ShowTab("Part Manager", 1, false); }
public override void Initialize() { var tabPage = new TabPage(); tabPage.Name = "PartManager"; tabPage.Text = "PartManager"; m_UI = new PartManagerUI(); m_UI.Dock = DockStyle.Fill; tabPage.Controls.Add(m_UI); Main.modChangedCallback += m_UI.OnModChanged; Main.Instance.m_TabController.m_TabPages.Add("PartManager", tabPage); Main.Instance.m_TabController.ShowTab("PartManager", 1, false); }
public override void Initialize() { var tabPage = new TabPage(); tabPage.Name = "PartManager"; tabPage.Text = "PartManager"; m_UI = new PartManagerUI(); m_UI.Dock = DockStyle.Fill; tabPage.Controls.Add(m_UI); Main.modChangedCallback += m_UI.OnModChanged; Main.Instance.m_TabController.m_TabPages.Add("PartManager", tabPage); Main.Instance.m_TabController.ShowTab("PartManager", 1, false); }
public override void Initialize() { var tabPage = new TabPage { Name = "Part Manager", Text = "Part Manager" }; _mUi = new PartManagerUI { Dock = DockStyle.Fill }; tabPage.Controls.Add(_mUi); Main.modChangedCallback += _mUi.OnModChanged; Main.Instance.m_TabController.m_TabPages.Add("Part Manager", tabPage); Main.Instance.m_TabController.ShowTab("Part Manager", 1, false); }