Esempio n. 1
0
 public void SetEthioValues()
 {
     try
     {
         var gregorDayFrom = new DateTime(SelectedGregorYear.Value, SelectedGregorMonth.Value, SelectedGregorDay.Value);
         var ethioDayFrom  = ReportUtility.getEthCalendar(gregorDayFrom, false);
         int dayf          = Convert.ToInt32(ethioDayFrom.Substring(0, 2)),
             monthf        = Convert.ToInt32(ethioDayFrom.Substring(2, 2)),
             yearf         = Convert.ToInt32(ethioDayFrom.Substring(4, 4));
         SelectedEthioDay   = EthioDays[dayf - 1];
         SelectedEthioMonth = EthioMonths[monthf - 1];
         SelectedEthioYear  = EthioYears[yearf - 2000];
     }
     catch
     {
         //MessageBox.Show("Can't convert, may be out side of the scope!");
     }
 }