Пример #1
0
        public override string ToString()
        {
            var sb = new StringBuilder();

            sb.Append(Environment.NewLine);
            sb.AppendLine("PollingFrequency :        " + PollingFrequency.ToString());
            sb.AppendLine("LocalStoragePath :        " + LocalStoragePath);
            sb.AppendLine("EarliestSyncDate :        " + EarliestSyncDate.ToUniversalTime().ToString("o"));
            sb.AppendLine("LeanKit :                 " + Environment.NewLine + LeanKit);
            sb.AppendLine("Target :                  " + Environment.NewLine + Target);
            sb.AppendLine("Mappings :                ");
            foreach (var boardMapping in Mappings)
            {
                sb.Append(boardMapping + Environment.NewLine);
            }
            return(sb.ToString());
        }
 public string SetApdu(PollingFrequency frequency)
 {
     return("FF70076B0BA209A107A405A0038D01" + ((byte)(frequency)).ToString("X2") + "00");
 }
        private PollingFrequency GetInheritedProperty(ref PollingFrequency?cachedValue, Func <StateSynchronizationPerformanceParameters, PollingFrequency> getter, PollingFrequency defaultValue)
        {
            if (cachedValue == null)
            {
                cachedValue = GetInheritedProperty(getter, defaultValue);
            }

            return(cachedValue.Value);
        }