public PackageDownloadHandle(DynamoViewModel dynamoViewModel, Greg.Responses.PackageHeader header, PackageVersion version) { this.dynamoViewModel = dynamoViewModel; this.Header = header; this.DownloadPath = ""; this.VersionName = version.version; }
/// <summary> /// The class constructor. </summary> /// <param name="header">The PackageHeader object describing the element</param> public PackageManagerSearchElement(Greg.Responses.PackageHeader header) { this.Header = header; this.Weight = 1; if (header.keywords != null && header.keywords.Count > 0) { this.Keywords = String.Join(" ", header.keywords); } else { this.Keywords = ""; } }
/// <summary> /// The class constructor. </summary> /// <param name="header">The PackageHeader object describing the element</param> public PackageManagerSearchElement(Greg.Responses.PackageHeader header) { this.Header = header; this.Weight = 1; if (header.keywords != null && header.keywords.Count > 0) { this.Keywords = String.Join(" ", header.keywords); } else { this.Keywords = ""; } this.IsExpanded = false; this.DownloadLatest = new DelegateCommand((Action)Execute); }
/// <summary> /// The class constructor. </summary> /// <param name="header">The PackageHeader object describing the element</param> public PackageManagerSearchElement(PackageManagerClient client, Greg.Responses.PackageHeader header) { this.client = client; this.IsExpanded = false; this.Header = header; this.Weight = header.deprecated ? 0.1 : 1; if (header.keywords != null && header.keywords.Count > 0) { this.Keywords = String.Join(" ", header.keywords); } else { this.Keywords = ""; } this.Votes = header.votes; }
/// <summary> /// The class constructor. </summary> /// <param name="header">The PackageHeader object describing the element</param> public PackageManagerSearchElement(DynamoViewModel dynamoViewModel, Greg.Responses.PackageHeader header) { this.dynamoViewModel = dynamoViewModel; this.Header = header; this.Weight = header.deprecated ? 0.1 : 1; if (header.keywords != null && header.keywords.Count > 0) { this.Keywords = String.Join(" ", header.keywords); } else { this.Keywords = ""; } this.Votes = header.votes; this.IsExpanded = false; this.DownloadLatest = new DelegateCommand((Action)Execute); this.UpvoteCommand = new DelegateCommand((Action)Upvote); this.DownvoteCommand = new DelegateCommand((Action)Downvote); }
public PackageDownloadHandle(Greg.Responses.PackageHeader header, PackageVersion version) { this.Header = header; this.DownloadPath = ""; this.VersionName = version.version; }