internal RollingFileAppender(IElementConfiguration configuration) : base(configuration) { mDatePattern = new DatePattern(Properties); mMaximumFileSize = new MaximumFileSize(Properties); mCountDirection = new CountDirection(Properties); }
public NthDayOfWeekInMonthHoliday(string name, int count, DayOfWeek dayOfWeek, int month, CountDirection direction) : base(name) { this.count = count; this.dayOfWeek = dayOfWeek; this.month = month; this.direction = direction; dayCache = new Dictionary<int, DateTime>(); }
public NthDayOfWeekInMonthHoliday(string name, int count, DayOfWeek dayOfWeek, int month, CountDirection direction) : base(name) { this.count = count; this.dayOfWeek = dayOfWeek; this.month = month; this.direction = direction; dayCache = new Dictionary <int, DateTime>(); }
internal RollingFileAppender(IElementConfiguration configuration) : base(configuration) { mDatePattern = new DatePattern(); mMaximumFileSize = new MaximumFileSize(); mCountDirection = new CountDirection(); mDateTimeStrategy = new StringValueProperty("Date Time Strategy:", "dateTimeStrategy", Log4NetXmlConstants.Type) { ToolTip = "Sets the strategy for determining the current date and time.\n" + "The default implementation is to use LocalDateTime (log4net.Appender.RollingFileAppender+LocalDateTime,log4net) which internally calls through to DateTime.Now.\n" + "DateTime.UtcNow may be used on frameworks newer than .NET 1.0 by specifying UniversalDateTime (log4net.Appender.RollingFileAppender+UniversalDateTime,log4net).\n" + "A custom implementation that implements IDateTime can be specified here as well. Leave blank to use LocalDateTime." }; }
public StopWatch(Label defaultObj, CountDirection choice, int duration) { mainObjectLabel = defaultObj; countChoice = choice; timerDuration = duration; if (choice == CountDirection.COUNTDOWN) { Minute = duration / 60; Second = duration % 60; // Build string and set it to object if (Second <= 9) { secondString = String.Concat('0', Second); } else { secondString = Second.ToString(); } if (Minute <= 9) { minuteString = String.Concat('0', Minute); } else { minuteString = Minute.ToString(); } if (mainObjectLabel != null) { Device.BeginInvokeOnMainThread(() => { SetText(String.Concat(minuteString, ':', secondString)); }); } } }
public void SetUp() { mSut = new CountDirection(); }
public void SetUp() { mSut = new CountDirection(new ReadOnlyCollection <IProperty>(new List <IProperty>())); }