Ejemplo n.º 1
0
        private void Button3_Click3(object sender, RoutedEventArgs e)
        {
            ModelFunc f2 = new ModelFunc();

            date          = Convert.ToDateTime(datePicker1.SelectedDate);
            textBox2.Text = f2.Chinese(date);
        }
Ejemplo n.º 2
0
        private void Button_Click2(object sender, RoutedEventArgs e)
        {
            ModelFunc f1 = new ModelFunc();

            date          = Convert.ToDateTime(datePicker1.SelectedDate);
            textBox3.Text = f1.EastZodiac(date);
        }
Ejemplo n.º 3
0
        private void Button1_Click(object sender, RoutedEventArgs e)
        {
            ModelFunc f = new ModelFunc();

            date = Convert.ToDateTime(datePicker1.SelectedDate);

            textBox1.Text = f.Age(date).ToString();
        }
Ejemplo n.º 4
0
        private void Button2_Click2(object sender, RoutedEventArgs e)
        {
            ModelFunc f1 = new ModelFunc();

            date = Convert.ToDateTime(datePicker1.SelectedDate);
            if (date == null)
            {
                MessageBox.Show("You haven't entered date!");
            }
            textBox3.Text = f1.EastZodiac(date);
        }