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_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(); }
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_devpointWindow = new SupportFrm(); m_filemanagerWindow = new FileManagerFrm(); m_customizerWindow = new CustomizeFrm(); m_faqBrowser = new Browser_frm(); m_faqBrowser.FormBorderStyle = FormBorderStyle.None; LauncherHelper.CardManager.Init(); Program.ChatServer.ServerMessage += ServerMessage; mainTabs.SelectedIndexChanged += TabChange; ApplyTranslation(); //if (!String.IsNullOrEmpty(Properties.Settings.Default.DropBoxUserToken) && !String.IsNullOrEmpty(Properties.Settings.Default.DropBoxUserSecret)) //{ // DropNetClient dbctrl = new DropNetClient(Program.Config.AppKey, Program.Config.AppSecret); // dbctrl.UserLogin = new DropNet.Models.UserLogin(); // dbctrl.UserLogin.Token = Properties.Settings.Default.DropBoxUserToken; // dbctrl.UserLogin.Secret = Properties.Settings.Default.DropBoxUserSecret; // DropBoxController.filesyncAsync(); //} }
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_chatWindow = new ChatFrm(); m_gameWindow = new GameListFrm("DevPro"); m_devpointWindow = new SupportFrm(); m_filemanagerWindow = new FileManagerFrm(); m_customizerWindow = new CustomizeFrm(); LauncherHelper.CardManager.Init(); var connectThread = new Thread(Loaded); connectThread.Start(); }