Ejemplo n.º 1
0
        private void LuckyLuke(object sender, LookForTheseEventArgs e)
        {
            this.Dispatcher.Invoke(new Action(delegate()
            {
                if (e == null) // Stop request
                {
                    ClearSpamming();
                }
                else
                {
                    SearchHere = gameListChannel;

                    if (e.Spam)
                    {
                        var sb = new System.Text.StringBuilder();
                        int i  = 0;
                        foreach (var item in e.Leagues)
                        {
                            i++;
                            sb.Append(item.Value);
                            if (i < e.Leagues.Count)
                            {
                                sb.Append(" or ");
                            }
                        }
                        sb.Append(" anyone?");
                        spamText = sb.ToString();
                    }

                    FoundUsers.Clear();
                    foreach (var item in e.Leagues)
                    {
                        FoundUsers.Add(item.Key, new List <string>());
                    }
                }
            }
                                              ));
        }
 private void OnBackCommand()
 {
     FoundUsers.Clear();
     Mediator.SendMessage(MsgTag.HideKeyboard, MsgTag.HideKeyboard);
     MyRegionManager.NavigatBack(RegionNames.UsermanagementContentRegion);
 }