Exemplo n.º 1
0
 /// <summary>
 /// Close and dispose components and client when exiting program
 /// </summary>
 public void Closing()
 {
     _client.Dispose();
     _client = null;
     _rest.Dispose();
     _rest         = null;
     _inviteWindow = null;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Method creates and sets user name, email, and password.
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="email"></param>
        /// <param name="password"></param>
        public async void CreateUser(string userName, string email, string password)
        {
            WeSketchRestRequests rest = new WeSketchRestRequests();

            try
            {
                User user = await rest.CreateUser(userName, password, email);//.ContinueWith(usr => UserLoggedIn(usr.Result));

                UserLoggedIn(user);
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message, "Error");
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Disposes of the _rest object.
 /// </summary>
 public void Closing()
 {
     _rest.Dispose();
     _rest = null;
 }