/// <summary> /// Initializes view model's details object asynchronously. /// </summary> protected virtual async Task InitializeObjectAsync(CancellationToken token) { DetailsObject.UpdateComputed(); await DetailsObject.SetValuesAsync(Params, token); if (ViewParams.Action.Create == Params[ViewParams.Action.Param]) { DetailsObject.SetModified(false, true); } }
/// <summary> /// Initializes view model's details object. /// </summary> protected virtual void InitializeObject() { DetailsObject.UpdateComputed(); DetailsObject.SetValues(Params); if (ViewParams.Action.Create == Params[ViewParams.Action.Param]) { DetailsObject.SetModified(false, true); } }