コード例 #1
0
        private void UserAPI_Click(object sender, EventArgs e)
        {
            if (socket == null)
            {
                return;
            }

            var form = new UserAPI(socket);

            form.Show();
        }
コード例 #2
0
        private void UserAPI_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 UserAPI(tbPublic.Text, tbPrivate.Text);

            form.Show();
        }