private void Hyperlink_Click(object sender, RoutedEventArgs e) { Profile profile = new Profile(); profile.Show(); Close(); }
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(); } }