/// <summary> /// Creates an instance of BlockVm with the given model /// </summary> /// <remarks>commands must be set after creating a block</remarks> /// <param name="model"></param> /// <param name="parent"></param> public BlockVm(Soheil.Core.PP.PPItemBlock data, PPItemCollection parent) : base() { UOW = data.UOW; Parent = parent; _fullData = data; //this.ViewModeChanged += v => ShowTasks = v == PPViewMode.Report; load(); }
/// <summary> /// Reloads current blocks full data updating the current UOW /// </summary> public void Reload(Soheil.Core.PP.PPItemBlock fullData) { UOW = fullData.UOW; _fullData = fullData; load(); }