예제 #1
0
        private void MoveSelectedRight_Executed(object obj)
        {
            var players = PlayerListBoxLeft.SelectedItems.Cast <Player>().ToArray();

            foreach (var player in players)
            {
                ListBoxRight.Add(player);
                ListBoxLeft.Remove(player);
            }
        }
예제 #2
0
 private void MainPage_PlayerDisconnected(Player obj)
 {
     lock (ListBoxLeftSync)
     {
         ListBoxLeft.Remove(obj);
     }
     lock (ListBoxRightSync)
     {
         ListBoxRight.Remove(obj);
     }
 }