private void MoveAllLeft_Executed(object obj)
 {
     foreach (var item in ListBoxRight)
     {
         ListBoxLeft.Add(item);
     }
     ListBoxRight.Clear();
 }
        private void MoveSelectedLeft_Executed(object obj)
        {
            var players = PlayerListBoxRight.SelectedItems.Cast <Player>().ToArray();

            foreach (var player in players)
            {
                ListBoxLeft.Add(player);
                ListBoxRight.Remove(player);
            }
        }
 private void MainPage_PlayerDisconnected(Player obj)
 {
     lock (ListBoxLeftSync)
     {
         ListBoxLeft.Remove(obj);
     }
     lock (ListBoxRightSync)
     {
         ListBoxRight.Remove(obj);
     }
 }
        private void CreateStandardMatch_Executed(object obj)
        {
            var players = ListBoxRight.ToArray <Player>();
            var match   = new Match()
            {
                Guid    = Guid.NewGuid().ToString(),
                Players = players,
                Leader  = Connection.Self
            };

            Connection.CreateMatch(match);
            NavigateToMatchPage(match);
        }