Ejemplo n.º 1
0
 public UserList(CloudController cloud)
 {
     InitializeComponent();
     Instance = this;
     Controller = cloud;
     OwnerList.Items.Add(cloud.Owner);
     ModeratorList.ItemsSource = cloud.OnlineModerators;
     OnlineUserList.ItemsSource = cloud.OnlineUsers;
     SearchResults.ItemsSource = SearchList;
 }
            void CorrectController()
            {

                if (controller == App.Connection.MessageController.CurrentCloud) return;
                if (controller != null)
                {
                    controller.PropertyChanged -= ControllerOnPropertyChanged;
                }
                controller = App.Connection.MessageController.CurrentCloud;
                controller.PropertyChanged += ControllerOnPropertyChanged;
            }