예제 #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;
            }
        }
예제 #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;
            }
        }