Example #1
0
 public State()
 {
     this.Torrents.CollectionChanged += (s, e) => { NotifySinglePropertyChanged("TorrentCount"); };
     this.LabelManager = new LabelManager(this);
     this.Initialize();
 }
Example #2
0
 public State()
 {
     this.Torrents.CollectionChanged += (s, e) => { NotifySinglePropertyChanged("TorrentCount"); };
     this.LabelManager = new LabelManager(this);
     this.Initialize();
 }
Example #3
0
        public TorrentLabel(string name, ObservableCollection<TorrentInfo> my_c, LabelManager LM)
        {
            this.lm = LM;

            this.Name = name;

            if (my_c == null)
            {
                // bind to AppState Torrent list
                this.lm.AppState.Torrents.CollectionChanged
                    += (s, e) =>
                    {
                        RefreshCount();
                    };
            }
            else
            {
                my_torrent_list = my_c;
                my_torrent_list.CollectionChanged += my_torrent_list_CollectionChanged;
            }
        }