private void btnCheckResult_Click(object sender, EventArgs e) { ClearText(); Allus.Keepcon.Export.Export export = KeepconSvc.RetriveResult_2("MovistarCustomerCareTw"); //if (export != null) //{ // txtImport.Text = export.GetXml(); // txtSetId.Text = export.SetId; // KeepconSvc.SaveResult(export); //} }
private void btn_GetMsg_Click(object sender, EventArgs e) { StringBuilder strb = new StringBuilder(); KeepconPost wKeepconPost = KeepconSvc.GetPostById(Convert.ToInt32(txtPostId.Text)); strb.AppendLine("Texto Original"); strb.AppendLine(); strb.AppendLine(wKeepconPost.Message); strb.AppendLine(); strb.AppendLine("Texto convertido a UTF-8"); UTF8Encoding wEncoding = new UTF8Encoding(); Byte[] wByte = wEncoding.GetBytes(wKeepconPost.Message); strb.AppendLine(wEncoding.GetString(wByte)); UnicodeEncoding wEncoding_Unicode = new UnicodeEncoding(); strb.AppendLine(); strb.AppendLine("Texto convertido a Unicode"); wByte = wEncoding_Unicode.GetBytes(wKeepconPost.Message); strb.AppendLine(wEncoding_Unicode.GetString(wByte)); ASCIIEncoding wEncoding_ASCII = new ASCIIEncoding(); wByte = wEncoding_ASCII.GetBytes(wKeepconPost.Message); strb.AppendLine(); strb.AppendLine("Texto convertido a ASCII"); strb.AppendLine(wEncoding_ASCII.GetString(wByte)); txtImport.Text = strb.ToString(); }