Example #1
0
 public Listener(State state)
 {
     Thread = new Thread(new ThreadStart(MainLoop));
     Thread.SetApartmentState(ApartmentState.STA);
     Thread.Start();
     State = state;
     Handler = new StateRpcHandler(State);
 }
Example #2
0
        public TorrentQueue(State st)
        {
            this.AppState = st;

            this.slots = new Amib.Threading.SmartThreadPool();
            this.set_queue_size(App.Settings.QueueSize);
            this.last_queue_enable_setting = App.Settings.EnableQueue;
        }
Example #3
0
        public LabelManager(State s)
        {
            this.AppState = s;

            this.Labels = new ObservableCollection<TorrentLabel>();

            this.Labels.Add(new TorrentLabel(null, null, this)); // This is for the "no label" case

            this.Labels.CollectionChanged += Labels_CollectionChanged;
        }
 public StateRpcHandler(State s)
 {
     State = s;
 }