private void ShowDaysLeftReminder()
{
////remider daysleft from config//////
bool isReminderDayToday = false;
string[] reminderdays = null; ;
string strdaysleft = confService.GetConfigValueForKey("daysleftreminder");//23nov2012
if (strdaysleft!= null && strdaysleft.Trim().Length > 0)
{
reminderdays = strdaysleft.Split(',');
}
if(reminderdays!=null)
{
foreach (string s in reminderdays)
{
if (DaysLeft.ToString().Trim().Equals(s.Trim()))
{
isReminderDayToday = true;
break;
}
}
}
//only show popup when these many number of days are left.
if (DaysLeft == 0 || DaysLeft == 1 || isReminderDayToday)
{
MessageBox.Show(LicMessage + " : " + LicType, "License Status", MessageBoxButton.OK, MessageBoxImage.Information);
}
}
#endregion