Exemple #1
0
        private void BirthDaySubscriptionButton_Click(object sender, EventArgs e)
        {
            var adminController = new SubscriptionsController(Properties.Settings.Default);
            int?age             = (int)AgeSpin.Value;

            if (IgnoreAgeCheckBox.Checked)
            {
                age = null;
            }
            var result = adminController.SubscribeBirthdate(age, (int)PriorDaysSpin.Value,
                                                            notificationPersonsTextBox.Lines);

            if (result.Length > 0)
            {
                ConsoleWriteLine("Suceeded!");
                ConsoleWriteLine("Subscription ID: " + result);
            }
            else
            {
                ConsoleWriteLine("FAILED!!!");
            }
        }