Пример #1
0
        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());
            }
        }
Пример #2
0
        /// <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);
        }