Ejemplo n.º 1
0
        private void Hyperlink_Click(object sender, RoutedEventArgs e)
        {
            Profile profile = new Profile();

            profile.Show();
            Close();
        }
Ejemplo n.º 2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            UserLogin   userLogin = new UserLogin(this.UserEmail, this.UserPassword);
            JObject     json      = callSync(userLogin);
            LoginResult result    = json.ToObject <LoginResult>(new Newtonsoft.Json.JsonSerializer());

            if (String.IsNullOrEmpty(result.TokenString))
            {
                string exception = json.ToObject <string>(new Newtonsoft.Json.JsonSerializer());
            }
            else
            {
                RunTimeVariables.TokenString = result.TokenString;
                RunTimeVariables.IdUser      = result.IdUser;
                Profile profile = new Profile();
                profile.Show();
                Close();
            }
        }