public MainFrm() { InitializeComponent(); Text = GetVersionString(); LauncherHelper.LoadBanlist(); var loginTab = new TabPage("Login"); m_loginWindow = new LoginFrm(); loginTab.Controls.Add(m_loginWindow); mainTabs.TabPages.Add(loginTab); m_chatWindow = new ChatFrm(); GameWindow = new HubGameList_frm(); m_rankingWindow = new RankingFrm(); m_devpointWindow = new SupportFrm(); m_filemanagerWindow = new FileManagerFrm(); m_customizerWindow = new CustomizeFrm(); Program.ChatServer.ServerMessage += ServerMessage; mainTabs.SelectedIndexChanged += TabChange; ApplyTranslation(); }
public MainFrm() { InitializeComponent(); var version = Program.Version.ToCharArray(); Text = "DevPro" + " v" + version[0] + "." + version[1] + "." + version[2] + " r" + Program.Version[3]; LauncherHelper.LoadBanlist(); var loginTab = new TabPage("Login"); m_loginWindow = new LoginFrm(); loginTab.Controls.Add(m_loginWindow); mainTabs.TabPages.Add(loginTab); m_wcsBrowser = new Browser_frm(); m_wcsBrowser.FormBorderStyle = FormBorderStyle.None; m_chatWindow = new ChatFrm(); GameWindow = new HubGameList_frm(); m_rankingWindow = new RankingFrm(); m_devpointWindow = new SupportFrm(); m_filemanagerWindow = new FileManagerFrm(); m_customizerWindow = new CustomizeFrm(); m_faqBrowser = new Browser_frm(); m_faqBrowser.FormBorderStyle = FormBorderStyle.None; Program.ChatServer.ServerMessage += ServerMessage; mainTabs.SelectedIndexChanged += TabChange; ApplyTranslation(); }