Ejemplo n.º 1
0
 public void SetGregorValues()
 {
     try
     {
         //var ethioDayFrom = new DateTime(SelectedEthioYear.Value, SelectedEthioMonth.Value, SelectedEthioDay.Value);
         //var ethioDayTo = new DateTime(SelectedEthioYearTo.Value, SelectedEthioMonthTo.Value, SelectedEthioDayTo.Value);
         var gregorDayFrom = ReportUtility.getGregorCalendar(SelectedEthioYear.Value, SelectedEthioMonth.Value, SelectedEthioDay.Value);
         int dayf          = Convert.ToInt32(gregorDayFrom.Day),
             monthf        = Convert.ToInt32(gregorDayFrom.Month),
             yearf         = Convert.ToInt32(gregorDayFrom.Year);
         SelectedGregorDay   = GregorDays[dayf - 1];
         SelectedGregorMonth = GregorMonths[monthf - 1];
         SelectedGregorYear  = GregorYears[yearf - 2010];
     }
     catch
     {
         //MessageBox.Show("Can't convert, may be out side of the scope!");
     }
 }