Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            AgeCalculatorClient client = new AgeCalculatorClient();
            

            label1.Text += client.CalculateDays(dateTimePicker1.Value);
        }
Exemple #2
0
        static void Main(string[] args)
        {
          AgeCalculatorClient client = new AgeCalculatorClient();
            var date = new DateTime(1979,06,26);
           var result = client.CalculateDays(date);

            Console.WriteLine(result);
            Console.ReadKey();
        }