private void InitThreadMethod()
        {
            handler = new InitFormEvent();

            //读取设定
            RefreshText();
            AppData.Load();

            //初始化数据库
            handler.InitSQL();

            //绑定服务器事件
            RefreshText();
            LocalServer.UserProfileDataReceived += LocalServer_UserProfileDataReceived;

            LocalServer.UnknownReceived     += LocalServer_UnknownReceived;
            LocalServer.LoginReceived       += LocalServer_LoginReceived;
            LocalServer.LogoutReceived      += LocalServer_LogoutReceived;
            LocalServer.StillOnlineReceived += LocalServer_StillOnlineReceived;

            //启动本地服务器
            RefreshText();
            LocalServer.OpenLocalServer();

            Invoke(() =>
            {
                Hide();
                mainWindow = new MainWindow();
                mainWindow.Show();
            });
        }