private async void button_Click(object sender, RoutedEventArgs e) { try { WebhostAPICall.AuthenticationInfo info = await WebhostAPICall.AuthenticateAsync(userNameInput.Text, passwordBox.Password); OnResponseSuccess(info, new EventArgs()); } catch (UnauthorizedAccessException ex) { OnResponseFailure(ex, new EventArgs()); } }
/// <summary> /// Put the content of the SfRichEditBoxAdv back into HtmlContent for transfering to Webhost. /// </summary> /// <param name="value"></param> public void SetHtml(String value) { String stripped = value.Replace("<html><body>", "").Replace("</html></body>", ""); HtmlContent = WebhostAPICall.ConvertToBase64String(stripped); }