Esempio n. 1
0
 public PresenceInformer(Auth auth)
 {
     m_auth = auth;
     m_account = auth.Account;
     m_account.Id = auth.Account.Id.ToString();
     m_informerThread = new Thread(Ping);
     m_shouldStop = true;
     m_shouldVanish = false;
     m_informerThread.Start();
 }
Esempio n. 2
0
 public SyncHandler(Auth auth)
 {
     stopwatch = new Stopwatch();
     m_auth = auth;
     m_account = auth.Account;
     m_account.Id = auth.Account.Id.ToString();
     m_timerThread = new Thread(SendSyncRequestCycler);
     m_shouldStop = true;
     m_timerThread.Start();
     m_shouldVanish = false;
 }
Esempio n. 3
0
 void Logout()
 {
     if (m_auth != null)
     {
         m_auth.Logout();
         m_auth = null;
     }
     else
     {
         MessageBox.Show("Already offline!");
         LogHelper.Debug("Log out failure: Already offline");
     }
 }
Esempio n. 4
0
 public AgreeToFullSyncDialog(Auth auth)
 {
     InitializeComponent();
     m_auth = auth;
     m_auth.AgreedToFullSync = (int)FullSyncConfirmed.No;
 }
Esempio n. 5
0
 void Login()
 {
     if (m_auth == null || m_auth != null && m_auth.IsAuthorized == false)
     {
         //m_xmppCH = new XMPPCommandsHandler(this, this.labelSatusSign, this.listBoxEvent);
         m_auth = new Auth(this, this.labelSatusSign, this.listBoxEvent);
         m_auth.LoginAndValidate();
     }
     else
     {
         LogHelper.Debug("Already online!");
         MessageBox.Show("Already online");
     }
 }
 public NotPassCompanyFileValidationDialog(Auth auth)
 {
     InitializeComponent();
     m_auth = auth;
     m_auth.CompanyFileValidated = false;
 }
Esempio n. 7
0
 public CompanyFileValidator(Auth auth)
 {
     m_isValidated = false;
     m_auth = auth;
     m_account = auth.Account;
 }
Esempio n. 8
0
 public NoHttpResponseDialog(Auth auth)
 {
     InitializeComponent();
     m_auth = auth;
     m_agreedToRetry = false;
 }