public LinkedWorkItemViewModel(ITaskboardService taskboardService, ILogger logger)
 {
     TaskBoardService = taskboardService;
     Logger           = logger;
     LoadTypes();
     PreviewWorkItemTemplate = PreviewWorkItemDefault;
 }
Ejemplo n.º 2
0
 public ConfigurationViewModel(ITaskboardService taskboardService, IConfigurationService configurationService, IStatusService statusService, IDataObjectFactory factory, ILogger logger) : this()
 {
     TaskBoardService     = taskboardService;
     StatusService        = statusService;
     ConfigurationService = configurationService;
     DataObjectFactory    = factory;
     Logger = logger;
 }
Ejemplo n.º 3
0
 public ApplicationViewModel(ITaskboardService taskboardService, IStatusService statusService)
 {
     TaskboardService = taskboardService;
     //TaskboardService.Connected += HandleTaskboardServiceConnected;
     TaskboardService.ConnectionFailed      += HandleConnectionFailed;
     TaskboardService.TfsCommunicationError += HandleTfsCommunicationError;
     TaskboardService.ConfigurationApplied  += HandleConfigurationApplied;
     MruFileManager  = new MruFileManager();
     StatusViewModel = new StatusViewModel(TaskboardService, statusService, null, WorkItemTemplateProvider, Logger);
     ShowPopupWindow = false;
     ShowEditbar     = true;
 }
Ejemplo n.º 4
0
 public StatusViewModel(ITaskboardService taskboardService, IStatusService statusService, IConfiguration configuration, IWorkItemTemplateProvider workItemTemplateProvider, ILogger logger)
 {
     TaskboardService = taskboardService;
     TaskboardService.ConnectionFailed      += HandleConnectionFailed;
     TaskboardService.TfsCommunicationError += HandleCommunicationError;
     TaskboardService.Connected             += HandleConnected;
     TaskboardService.Disconnected          += HandleDisconnected;
     StatusService = statusService;
     StatusService.PropertyChanged += (sender, args) => OnPropertyChanged(string.Empty);
     Configuration            = configuration;
     WorkItemTemplateProvider = workItemTemplateProvider;
     Logger = logger;
 }
Ejemplo n.º 5
0
 public ReportViewModel(ITaskboardService taskboardService, IConfigurationService configurationService, IConfiguration configuration)
 {
     TaskboardService     = taskboardService;
     ConfigurationService = configurationService;
     Configuration        = configuration;
 }