Exemplo n.º 1
0
 public Listener(State state)
 {
     Thread = new Thread(new ThreadStart(MainLoop));
     Thread.SetApartmentState(ApartmentState.STA);
     Thread.Start();
     State = state;
     Handler = new StateRpcHandler(State);
 }
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 4
0
 public StateRpcHandler(State s)
 {
     State = s;
 }