public App()
        {
            InitializeComponent();

            WPClient = new WordPressPCL.WordPressClient("http://itworldcanada.com/wp-json/");
            MainPage = new MainPage();
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Links.Clear();
            // Get the Wp Links
            var client = new WordPressPCL.WordPressClient(textBox1.Text + "/wp-json/");

            var posts = client.Posts.GetAll().Result;

            foreach (WordPressPCL.Models.Post post in posts)
            {
                Links.Add(post.Link);
            }

            this.Close();
        }