public DockerContainerViewModel(DockerService service, DockerContainer container) { Service = service; Container = container; Id = container.Id; Update(); EnableLogsCommand = new BasicCommand(() => Service.Connected, o => service.EnableLogs(Id)); }