Beispiel #1
0
        public RecorderItem(TimeRecorder timeRecorder, string description)
        {
            if (timeRecorder == null)
            {
                throw new ArgumentNullException("timeRecorder");
            }

            Id                 = Guid.NewGuid().ToString();
            TimeRecorder       = timeRecorder;
            StartTicks         = TimeRecorder.GetCurrentTicks();
            StartTime          = DateTime.Now;
            Description        = description;
            IsCompleted        = false;
            ChildRecorderItems = new List <RecorderItem>();
        }
        public Action(TimeRecorder timeRecorder, string description)
        {
            if (timeRecorder == null)
            {
                throw new ArgumentNullException("timeRecorder");
            }

            Id = Guid.NewGuid().ToString();
            TimeRecorder = timeRecorder;
            StartTicks = TimeRecorder.GetCurrentTicks();
            StartTime = DateTime.Now;
            Description = description;
            IsCompleted = false;
            ChildActions = new List<Action>();
        }