Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using System.Diagnostics;
- using Wordpress;
- namespace WordpressDemoApp
- {
- public partial class Form1 : Form
- {
- private Api wordpress = new Wordpress.Api("http://diego.graphics/", "api", "diego.graphics", "54b928ca4d56c");
- public Form1()
- {
- wordpress.SetControlers(true, true, true, true, true, true);
- InitializeComponent();
- }
- private void trackBar1_Scroll(object sender, EventArgs e)
- {
- label1.Text = trackBar1.Value.ToString();
- }
- private void TestRequest(string json)
- {
- Debug.WriteLine("Knock Knock, Neo.");
- Debug.WriteLine("TestRequest says: " + json);
- //label1.Text = json;
- }
- private void button1_Click(object sender, EventArgs e)
- {
- WebApi request = new Wordpress.WebApi(wordpress.UriConstruct("info"));
- request.Callback = button1_Response;
- request.StartWebRequest();
- }
- private void button1_Response(string json)
- {
- Debug.WriteLine(json); // Funktioniert
- //JsonPreview.Text = json; // Führt zum Error
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement