Example #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     validateHuman();
     int y = Convert.ToInt32(year.Text);
     int m = Convert.ToInt32(month.Text);
     int d = Convert.ToInt32(day.Text);
     int h = Convert.ToInt32(hour.Text);
     human = new DateTime(y, m, d, h, 0, 0);
     coraabian = new CoraabiaDate(human);
     //actualizeHuman();
     actualizeCoraab();
     /*debug.Text = coraabian.ToString();
     debug.Text += coraabian.mess;*/
 }
Example #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     validateCoraab();
     int y = Convert.ToInt32(corYear.Text);
     int er = Convert.ToInt32(corEra.Text);
     int dt = CoraabiaDate.DayTypeLight;
     if (dayType.Text.Equals("Den světla"))
     {
         dt = CoraabiaDate.DayTypeLight;
     } else {
         dt = CoraabiaDate.DayTypeHaze;
     }
     int h = Convert.ToInt32(corHour.Text);
     coraabian = new CoraabiaDate(y,er,dt,h);
     human = coraabian.getDate();
     actualizeHuman();
     //actualizeCoraab();
     /*debug.Text = coraabian.ToString();
     debug.Text += coraabian.mess;*/
 }