Exemple #1
0
 internal static void SavePEDCString(this PwGroup pg, PEDCalcValue days)
 {
     pg.CustomData.Remove(Configuration.DaysField);
     if (days.Inherit)
     {
         pg.CustomData.Remove(Configuration.Interval);
     }
     else
     {
         pg.CustomData.Set(Configuration.Interval, days.ToString());
     }
     PEDCValueDAO.Invalidate(pg);
 }
Exemple #2
0
 internal static void SavePEDCString(this PwEntry pe, PEDCalcValue days)
 {
     pe.Strings.Remove(Configuration.DaysField);
     if (days.Inherit)
     {
         pe.Strings.Remove(Configuration.Interval);
     }
     else
     {
         pe.Strings.Set(Configuration.Interval, new ProtectedString(false, days.ToString()));
     }
     PEDCValueDAO.Invalidate(pe);
 }