public VerifyDeviceKeysResponseHandler(Sync syncClient, string nonce)
 {
     _nonce = nonce;
     syncClient.VerifyDeviceKeysResponseReceived += OnVerifyDeviceKeysResponseReceived;
 }
Exemplo n.º 2
0
 private void SetServerSyncStatusUnsafe(int serverId, Sync.Statuses status)
 {
     _homePage.SetServerSyncStatus(serverId, status);
 }
Exemplo n.º 3
0
        private void SetDatabaseSyncStatusUnsafe(int databaseId, Sync.Statuses status)
        {
            if (!_activeDatabase || _activeDatabaseId != databaseId)
                return;

            _header.UpdateDatabaseSyncStatus(databaseId, status);
        }
Exemplo n.º 4
0
 public void SetServerSyncStatus(int serverId, Sync.Statuses status)
 {
     if (_mainForm.InvokeRequired)
         _mainForm.Invoke((MethodInvoker) delegate { SetServerSyncStatusUnsafe(serverId, status); });
     else
         SetServerSyncStatusUnsafe(serverId, status);
 }
Exemplo n.º 5
0
 public void SetDatabaseSyncStatus(int databaseId, Sync.Statuses status)
 {
     if (_mainForm.InvokeRequired)
         _mainForm.Invoke((MethodInvoker) delegate { SetDatabaseSyncStatusUnsafe(databaseId, status); });
     else
         SetDatabaseSyncStatusUnsafe(databaseId, status);
 }