Exemplo n.º 1
0
        internal void NewsConnectionEvent(NZBDriveDLL.ConnectionState state, int server, int thread)
        {
            NewsServerStatus newsServerStatus;

            if (_statusMap.TryGetValue(server, out newsServerStatus))
            {
                newsServerStatus.NewsConnectionEvent(state, thread);
            }
        }
Exemplo n.º 2
0
 void _nzbDrive_ConnectionStateChanged(NZBDriveDLL.ConnectionState state, int server, int thread)
 {
     this.Dispatcher.BeginInvoke((Action)(() =>
     {
         try
         {
             NZBDriveView.Model.NewsConnectionEvent(state, server, thread);
         }
         catch (Exception e)
         {
             MessageBox.Show("_nzbDrive_OnNewsConnectionEvent Failed: " + e.Message);
         }
     }));
 }
Exemplo n.º 3
0
        internal void NewsConnectionEvent(NZBDriveDLL.ConnectionState state, int thread)
        {
            NewsServerConnectionStatus status = NewsServerConnectionStatus.Disconnected;

            switch (state)
            {
            case NZBDriveDLL.ConnectionState.Disconnected: status = NewsServerConnectionStatus.Disconnected; break;

            case NZBDriveDLL.ConnectionState.Connecting: status = NewsServerConnectionStatus.Disconnected; break;

            case NZBDriveDLL.ConnectionState.Idle: status = NewsServerConnectionStatus.Idle; break;

            case NZBDriveDLL.ConnectionState.Working: status = NewsServerConnectionStatus.Working; break;
            }

            ConnectionStatusCollection[thread] = status;
        }
Exemplo n.º 4
0
 internal void NewsConnectionEvent(NZBDriveDLL.ConnectionState state, int server, int thread)
 {
     NewsServerCollection.NewsConnectionEvent(state, server, thread);
 }