private void StartTournamentMatch(Kv kv) { if (Ap.IsGameInProgress) { return; } DataSet ds = UData.LoadDataSet(kv.Get("GameData")); MainOnline.ShowMainOnline(ds, false); }
bool OpenBestBiltzGame() { bool isGameRunning = false; DataSet dsPlayer = SocketClient.HighestRankingPlayerGame(); if (dsPlayer.Tables.Count > 0) { if (dsPlayer.Tables[0].Rows[0]["GameID"] != System.DBNull.Value) { int GameID = UData.ToInt32(dsPlayer.Tables[0].Rows[0]["GameID"]); SocketClient.AddAudience(GameID); MainOnline.ShowMainOnline(GameID); isGameRunning = true; } } return(isGameRunning); }
private bool CheckLastInprogressGame() { DataSet ds = SocketClient.GetLastInprogressGame(Ap.CurrentUserID); return(MainOnline.ShowMainOnline(ds, true)); }