public ImageSearchResultDataGridItemModel(DockerCommandService dockerCommandService, ImageSearchResult searchResult)
 {
     this.dockerCommandService = dockerCommandService;
     Name        = searchResult.Name;
     Description = searchResult.Description;
     Stars       = searchResult.Stars;
     IsOffical   = searchResult.IsOffical;
     IsAutomated = searchResult.IsAutomated;
 }
Exemplo n.º 2
0
 public ImageDataGridItemModel(ImagesTabModel imagesTabModel, DockerCommandService dockerCommandService, DockerImageInfo imageInfo)
 {
     this.imagesTabModel       = imagesTabModel;
     this.dockerCommandService = dockerCommandService;
     ID         = imageInfo.ID;
     Repository = imageInfo.Repository;
     Tag        = imageInfo.Tag;
     Created    = imageInfo.Created;
     Size       = imageInfo.Size;
 }
Exemplo n.º 3
0
        public MainWindowModel()
        {
            dockerExecutableService = new DockerExecutableService();
            dockerCommandService    = new DockerCommandService(dockerExecutableService);

            dockerExecutableService.Executed += DockerExecutableService_Executed;
            dockerExecutableService.Output   += DockerExecutableService_Out;
            dockerExecutableService.Error    += DockerExecutableService_Error;

            ContainerTabModel = new ContainerTabModel(dockerCommandService);
            ImagesTabModel    = new ImagesTabModel(dockerCommandService);
            DockerHubTabModel = new DockerHubTabModel(dockerCommandService);

            InitializeAsync();
        }
Exemplo n.º 4
0
 public ImagesTabModel(DockerCommandService dockerCommandService)
 {
     this.dockerCommandService = dockerCommandService;
 }
Exemplo n.º 5
0
 public DockerHubTabModel(DockerCommandService dockerCommandService)
 {
     this.dockerCommandService = dockerCommandService;
 }
Exemplo n.º 6
0
 public ContainerTabModel(DockerCommandService dockerCommandService)
 {
     this.dockerCommandService = dockerCommandService;
 }