// C# Form
private void Button1_Click() { // Redeem token button event handler
if (StackAPI.ExtendSubscription(username, password, token))
{
MessageBox.Show("Your subscription has been successfully extended!", OnProgramStart.Name, MessageBoxButton.OK, MessageBoxImage.Information);
// Your Code
}
}
// C# Console
static void Main() {
Console.WriteLine("Username:");
string username = Console.ReadLine();
Console.WriteLine("Password:");
string password = Console.ReadLine();
Console.WriteLine("Token:");
string token = Console.ReadLine();
if (API.ExtendSubscription(username, password, token))
{
MessageBox.Show("Your subscription has been successfully extended!", OnProgramStart.Name, MessageBoxButton.OK, MessageBoxImage.Information);
// Your Code
}