예제 #1
0
        private void PublicAPI_Click(object sender, EventArgs e)
        {
            if (socket == null)
            {
                return;
            }

            var form = new PublicAPI(socket);

            form.Show();
        }
예제 #2
0
        private void PublicAPI_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(tbPublic.Text))
            {
                MessageBox.Show("No public API key", "Warning");
                return;
            }
            if (string.IsNullOrWhiteSpace(tbPrivate.Text))
            {
                MessageBox.Show("No private API key", "Warning");
                return;
            }

            var form = new PublicAPI(tbPublic.Text, tbPrivate.Text);

            form.Show();
        }