Exemple #1
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;
 }
Exemple #2
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();
        }