public FirmwarePackageViewModel GetViewModel(string ElementKey, IRepositoryElement RepositoryElement, FirmwarePackageAvailabilityViewModel AvailabilityViewModel, ReleaseStatus Status) { var version = new FirmwareVersionViewModel(RepositoryElement.Information.FirmwareVersion.ToString(2), RepositoryElement.Information.FirmwareVersionLabel, RepositoryElement.Information.ReleaseDate); return new FirmwarePackageViewModel(ElementKey, version, AvailabilityViewModel, Status, RepositoryElement); }
public MainViewModel GetInstance(FirmwareVersionViewModel Version, ProjectViewModel Project) { return new MainViewModel(Version, Project, _packageSavingService, _recentProjectsService); }