private BotControl RenderBot(BotParticipant BotPlayer) { BotControl botPlayer = new BotControl(); botPlayer.PlayerName.Content = BotPlayer.SummonerName; //var uriSource = new Uri(Path.Combine(Client.ExecutingDirectory, "Assets", "profileicon", BotPlayer.Champion + ".png"), UriKind.RelativeOrAbsolute); //botPlayer.ProfileImage.Source = new BitmapImage(uriSource); botPlayer.BanButton.Tag = BotPlayer; botPlayer.BanButton.Click += KickAndBan_Click; return botPlayer; }
/// 48.) public void RemoveBotChampion(Int32 arg0, BotParticipant arg1) { int Id = Invoke("gameService", "removeBotChampion", new object[] { arg0, arg1.GetBaseTypedObject() }); while (!results.ContainsKey(Id)) System.Threading.Thread.Sleep(10); results.Remove(Id); }
/// 48.) public async Task<object> RemoveBotChampion(Int32 arg0, BotParticipant arg1) { int Id = Invoke("gameService", "removeBotChampion", new object[] { arg0, arg1.GetBaseTypedObject() }); while (!results.ContainsKey(Id)) await Task.Delay(10); results.Remove(Id); return null; }