Exemple #1
0
 private void InitializeClass(NepaliDate fromNepaliDate, NepaliDate toNepaliDate, int fiscalYearID)
 {
     _fromNepaliDate = fromNepaliDate;
     _toNepaliDate   = toNepaliDate;
     _fiscalYearID   = fiscalYearID;
     //now convert the Nepali Date to english date
     _fromEnglishDate = DateConvertor.GetEnglishDate(_fromNepaliDate.ToString());
     _toEnglishDate   = DateConvertor.GetEnglishDate(_toNepaliDate.ToString());
 }
Exemple #2
0
 public bool Equals(FiscalYear other)
 {
     if (_fromNepaliDate.ToString() == other.FromNepaliDate.ToString())
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }