Exemplo n.º 1
0
        private void btnGetCurrent_Click(object sender, EventArgs e)
        {
            WebClient wc = new WebClient();

            wc.Credentials              = new NetworkCredential(txtUser.Text, txtPass.Text);
            wc.DownloadStringCompleted += (sender2, e2) =>
            {
                TextMessageBox.Show(e2.Result);
            };
            wc.DownloadStringAsync(new Uri("http" + (cbHttps.Checked ? "s" : "") + "://" + txtHostAndPort.Text + "/cgi-bin/devVideoInput.cgi?action=getFocusStatus"));
        }
Exemplo n.º 2
0
        public static void Show(string text)
        {
            TextMessageBox box = new TextMessageBox(text);

            box.Show();
        }