Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
        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;
            }
        }