private void postJson_Click(object sender, EventArgs e) { //todo: css, javascript, html files jsonOutput.Text = String.Empty; JsonObject json = new JsonObject( ); foreach (JsonAttributeControl ele in jsonInput.Controls) { //take each controls' values into a dictionary or object, pass to serialize json function in webworker json.type.Add(ele.keyInput.Text, ele.valueInput.Text); } string url = urlGrabber.Text.IndexOf("http") < 0 ? "http://" + urlGrabber.Text : urlGrabber.Text; jsonOutput.Text = WebWorker.post(url, whackGrabber.Text, contentGrabber.Text, json.type); }
private void button1_Click(object sender, EventArgs e) { string url = urlGrabber.Text.IndexOf("http") < 0 ? "http://" + urlGrabber.Text : urlGrabber.Text; string source = WebWorker.getSource(url); outputSource.Text = source; string searchMeta = WebWorker.searchTags(source, "meta"); outputMeta.Text = searchMeta; if (!String.IsNullOrWhiteSpace(customGrabber.Text)) { string searchCustom = WebWorker.searchTags(source, customGrabber.Text); outputCustom.Text = searchCustom; } }
private void button1_Click(object sender, EventArgs e) { string url = urlGrabber.Text.IndexOf("http") < 0 ? "http://" + urlGrabber.Text : urlGrabber.Text; jsonOutput.Text = WebWorker.post(url, whackGrabber.Text, contentGrabber.Text, new Dictionary <string, string>( )); }