private void UserAPI_Click(object sender, EventArgs e) { if (socket == null) { return; } var form = new UserAPI(socket); form.Show(); }
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(); }