示例#1
0
            /// <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;
                }
            }
示例#2
0
        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);
        }