private void btnTestApiCreds_Click(object sender, EventArgs e) { Toopher.ToopherAPI api = new Toopher.ToopherAPI(tbApiKey.Text, tbApiSecret.Text, baseUrl: tbApiUrl.Text); AsyncLoggableJob job = new AsyncLoggableJob(new TestApiJob(api)); LogUI form = new LogUI(job); try { this.Enabled = false; form.ShowDialog(); } finally { this.Enabled = true; } }
private void btnTestApiCreds_Click(object sender, EventArgs e) { Toopher.ToopherAPI api = new Toopher.ToopherAPI (tbApiKey.Text, tbApiSecret.Text, baseUrl: tbApiUrl.Text); AsyncLoggableJob job = new AsyncLoggableJob (new TestApiJob (api)); LogUI form = new LogUI (job); try { this.Enabled = false; form.ShowDialog (); } finally { this.Enabled = true; } }