Ejemplo 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();
 }
Ejemplo 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;
 }
Ejemplo 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");
     }
 }
Ejemplo n.º 4
0
 public AgreeToFullSyncDialog(Auth auth)
 {
     InitializeComponent();
     m_auth = auth;
     m_auth.AgreedToFullSync = (int)FullSyncConfirmed.No;
 }
Ejemplo 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;
 }
Ejemplo n.º 7
0
 public CompanyFileValidator(Auth auth)
 {
     m_isValidated = false;
     m_auth = auth;
     m_account = auth.Account;
 }
Ejemplo n.º 8
0
 public NoHttpResponseDialog(Auth auth)
 {
     InitializeComponent();
     m_auth = auth;
     m_agreedToRetry = false;
 }