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();
        }
Exemplo n.º 3
0
 static void Main(string[] args)
 {
     ThousandDaysClient host = new ThousandDaysClient();
     Console.WriteLine("Skriv in året du är född: ");
     var year = Convert.ToInt32(Console.ReadLine());
     Console.WriteLine("Skriv in månaden du är född: ");
     var month = Convert.ToInt32(Console.ReadLine());
     Console.WriteLine("Skriv in dagen du är född: ");
     var day = Convert.ToInt32(Console.ReadLine());
     Console.WriteLine(host.days(year, month, day) + " dagar kvar till du fyller jämt antal 1000 år");
     System.Threading.Thread.Sleep(5000);
 }
Exemplo n.º 4
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ThousandDaysClient host = new ThousandDaysClient();
            Label1.Text = host.days(Convert.ToInt32(TextBox1.Text), Convert.ToInt32(TextBox2.Text), Convert.ToInt32(TextBox3.Text)).ToString() + " dagar kvar till du fyller jämt antal 1000 år";

        }