public SupplementsCycleEntryViewModel(SupplementsCycleWeekViewModel parentDay, SupplementCycleEntryDTO entry)
 {
     this.parentDay = parentDay;
     this.entry     = entry;
     Image          = "pack://application:,,,/BodyArchitect.Client.Resources;component/Images/Measurements.png";
     Header         = SuplementsEntryStrings.SupplementsCycleDefinitionEditorViewModel_Measurements;
 }
        public void AddWeek()
        {
            SupplementCycleWeekDTO week = new SupplementCycleWeekDTO();

            week.CycleWeekStart = week.CycleWeekEnd = getNextWeekNumber();
            definition.Weeks.Add(week);

            var viewModel = new SupplementsCycleWeekViewModel(this, week);

            Weeks.Add(viewModel);
            viewModel.IsSelected = true;
            IsModified           = true;
        }
 public SupplementsCycleDosageViewModel(SupplementsCycleWeekViewModel parentDay, SupplementCycleDosageDTO entry) : base(parentDay, entry)
 {
     this.entry = entry;
     Update();
 }