Exemplo n.º 1
0
        /// <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);
            }
        }
Exemplo n.º 2
0
        /// <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);
            }
        }