public TimerSheetViewModel(int Hours, int Minutes, int Seconds, string Description) { start = DateTime.Now; time = new TimeSpan(Hours, Minutes, Seconds); CloseCommand = new DelegateCommandResolver(SaveChanged); TimerSheet = new TimerSheetModel { Text = Description, Time = CreateTime(time) }; }
public TimerSheetViewModel(int Hours, int Minutes, int Seconds, string Description) { start = DateTime.Now; time = new TimeSpan(Hours, Minutes, Seconds); CloseCommand = new TimerSheetViewModelCloseCommand(this); timerSheet = new TimerSheetModel { Text = Description, Time = CreateTime(time) }; }