Exemplo n.º 1
0
        private void buttonCalc_Click(object sender, EventArgs e)
        {
            var tdc = new ThousandDaysClient();

            var bornday = DateTime.ParseExact(textBoxBirthday.Text,
                                            "dd.MM.yyyy",
                                            CultureInfo.InvariantCulture);
            labelResult.Text = @"Your next celebrationdate will be at " + tdc.nextThousandDay(bornday).ToShortDateString();

        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            ThousandDaysClient tdc = new ThousandDaysClient();

            Console.WriteLine("Welcome, want to know when ur next 1000th day anniversary is? \r\nPlease input the date you where born dd.MM.yyyy");
            DateTime bornday = DateTime.ParseExact(Console.ReadLine(),
                                            "dd.MM.yyyy",
                                            CultureInfo.InvariantCulture);
            Console.WriteLine("Your next 1000th day celebration will be on the " + tdc.nextThousandDay(bornday).ToShortDateString());
            Console.ReadKey();
        }