Exemple #1
0
 public void Logout()
 {
     loggedin = false;
     KillKeepAliveThread();
     user = null;
     statusMessage = "Not logged in.";
 }
Exemple #2
0
        public Boolean Login()
        {
            try
            {
                Gett.Sharing.GettUser user = new Gett.Sharing.GettUser();
                user.Login(CredentialManager.apikey, CredentialManager.email, CredentialManager.password);
                user.RefreshMe();
                CredentialManager.valid = true;

                loggedin = true;
                KeepAlive();
                statusMessage = "Logged in.";
                Notify("Succesfully logged into Ge.tt");
                this.user = user;
            }
            catch (WebException e)
            {
                //login was bad
                CredentialManager.valid = false;
                MessageBox.Show("text", "caption");
            }
            return(CredentialManager.valid);
        }
Exemple #3
0
        public Boolean Login()
        {
            try
            {
                Gett.Sharing.GettUser user = new Gett.Sharing.GettUser();
                user.Login(CredentialManager.apikey, CredentialManager.email, CredentialManager.password);
                user.RefreshMe();
                CredentialManager.valid = true;

                loggedin = true;
                KeepAlive();
                statusMessage = "Logged in.";
                Notify("Succesfully logged into Ge.tt");
                this.user = user;
            }
            catch (WebException e)
            {
                //login was bad
                CredentialManager.valid = false;
                MessageBox.Show("text", "caption");
            }
            return CredentialManager.valid;
        }
Exemple #4
0
 /// <summary>
 /// Internal ctor, GettShare class creates new instance for this class.
 /// </summary>
 /// <param name="gettUser">GettUser class</param>
 /// <param name="gettShare">GettShare class</param>
 /// <param name="gettFileInfo">Information for this share</param>
 internal GettFile(GettUser gettUser, GettShare gettShare, FileInfo gettFileInfo)
 {
     _gettUser     = gettUser;
     _gettShare    = gettShare;
     _gettFileInfo = gettFileInfo;
 }
Exemple #5
0
 /// <summary>
 /// Internal ctor, GettShare class creates new instance for this class.
 /// </summary>
 /// <param name="gettUser">GettUser class</param>
 /// <param name="gettShare">GettShare class</param>
 /// <param name="gettFileInfo">Information for this share</param>
 internal GettFile(GettUser gettUser, GettShare gettShare, FileInfo gettFileInfo)
 {
     _gettUser = gettUser;
     _gettShare = gettShare;
     _gettFileInfo = gettFileInfo;
 }
Exemple #6
0
 /// <summary>
 /// Internal ctor, GettShares class creates new instance for this class
 /// </summary>
 /// <param name="gettUser">GettUser class</param>
 /// <param name="gettShareInfo">Information for this share</param>
 internal GettShare(GettUser gettUser, ShareInfo gettShareInfo)
 {
     _gettUser = gettUser;
     GettShareInfo = gettShareInfo;
 }
Exemple #7
0
 /// <summary>
 /// Internal ctor, GettUser class creates one instance for this class.
 /// </summary>
 /// <param name="gettUser"></param>
 internal GettShares(GettUser gettUser)
 {
     _gettUser = gettUser;
 }