Exemplo n.º 1
0
            public static void Completed(StrongString theText)
            {
                StrongString[] myString = theText.Split(ServerConfig.CharSeparator);
                ServerConfig   config   =
                    new ServerConfig(
                        (ServerStatus)myString[0].ToInt32(),
                        GameVersion.ParseToVersion(myString[1]),
                        myString[2], myString[3]);

                if (config.ServerStatus == ServerStatus.Online)
                {
                    Forming.TheMainForm.IsServerOnline = true;
                    if (config.LastVersion == GameVersion.ParseToVersion(AppSettings.AppVersion))
                    {
                        Forming.TheMainForm.IsTheLastVer = true;
                    }
                    else
                    {
                        Forming.TheMainForm.IsTheLastVer = false;
                    }
                }
                else if (config.ServerStatus == ServerStatus.Breaking)
                {
                    Forming.TheMainForm.IsServerOnBreak = true;
                }
                else if (config.ServerStatus == ServerStatus.Updating)
                {
                    Forming.TheMainForm.IsServerUpdating = true;
                    Forming.TheMainForm.ReleasingDate    = config.AccessDate.GetStrong();
                }
                Forming.TheMainForm.IsCheckingForUpdateEnded = true;
                Forming.TheMainForm.IsCheckingForUpdate      = false;
            }