/// <summary> /// Initializes a new instance of the <see cref="UpdateAssetViewModel"/> class. /// </summary> public UpdateAssetViewModel(AssetViewModelBase asset) { Asset = asset; if (!asset.IsGenerated || asset.CompareState == GeneratedCompareState.Same) { IsUpdated = false; } }
public AssetSourceViewModel(AssetViewModelBase owner, string source) { _owner = owner; Source = source; Title = new TextFieldViewModel("Title", 240); Description = new TextFieldViewModel("Description", 240); Points = new IntegerFieldViewModel("Points", 0, 100); }