// C# Form
private void RegisterButton1_Click() {
if (StackAPI.Register(username.Text, password.Text,email.Text,license.Text))
{
MessageBox.Show("Registration was successful!",OnProgramStart.Name,MessageBoxButtons.OK,MessageBoxIcon.Information);
//Your Code
}
}
// C# Console
static void Main() {
Console.WriteLine("Username:");
string username = Console.ReadLine();
Console.WriteLine("Password:");
string password = Console.ReadLine();
Console.WriteLine("Email:");
string email = Console.ReadLine();
Console.WriteLine("License:");
string license = Console.ReadLine();
if (StackAPI.Register(username, password, email, license))
{
MessageBox.Show("Registration was successful!",OnProgramStart.Name,MessageBoxButtons.OK,MessageBoxIcon.Information);
//Your Code
}
}