コード例 #1
0
        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);
        }
コード例 #2
0
 public MainViewModel GetInstance(FirmwareVersionViewModel Version, ProjectViewModel Project)
 {
     return new MainViewModel(Version, Project, _packageSavingService, _recentProjectsService);
 }