public FileClipboardDataControlFactory(
     IDataSourceService dataSourceService, 
     IFileIconService fileIconService)
 {
     this.dataSourceService = dataSourceService;
     this.fileIconService = fileIconService;
 }
 public FileClipboardDataFactory(
     IFileIconService fileIconService,
     IMemoryHandleFactory memoryHandleFactory,
     IClipboardNativeApi clipboardNativeApi)
 {
     this.fileIconService     = fileIconService;
     this.memoryHandleFactory = memoryHandleFactory;
     this.clipboardNativeApi  = clipboardNativeApi;
 }
 public FileClipboardDataFactory(
     IDataSourceService dataSourceService,
     IFileIconService fileIconService,
     IMemoryHandleFactory memoryHandleFactory,
     IClipboardNativeApi clipboardNativeApi)
 {
     this.dataSourceService = dataSourceService;
     this.fileIconService = fileIconService;
     this.memoryHandleFactory = memoryHandleFactory;
     this.clipboardNativeApi = clipboardNativeApi;
 }
        public PendingChangesViewModel(
            IRepositoryService repositoryService,
            IFileIconService iconService,
            GitWorkingTreeChangedEvent workingTreeChangedEvent
            )
        {
            _repositoryService = repositoryService;
            _iconService = iconService;
            Changes = new ObservableCollection<StatusViewModel>();

            workingTreeChangedEvent.Subscribe(Refresh, ThreadOption.UIThread);
        }
 public FileClipboardDataControlFactory(
     IDataSourceService dataSourceService,
     IFileIconService fileIconService,
     IMemoryHandleFactory memoryHandleFactory,
     IClipboardControlFactory<IClipboardFileData, IClipboardFileDataControl> clipboardFileControlFactory,
     IClipboardControlFactory<IClipboardFileCollectionData, IClipboardFileCollectionDataControl> clipboardFileCollectionControlFactory)
 {
     this.dataSourceService = dataSourceService;
     this.fileIconService = fileIconService;
     this.memoryHandleFactory = memoryHandleFactory;
     this.clipboardFileControlFactory = clipboardFileControlFactory;
     this.clipboardFileCollectionControlFactory = clipboardFileCollectionControlFactory;
 }
示例#6
0
 public FileClipboardDataControlFactory(
     IDataSourceService dataSourceService,
     IFileIconService fileIconService,
     IMemoryHandleFactory memoryHandleFactory,
     IClipboardControlFactory <IClipboardFileData, IClipboardFileDataControl> clipboardFileControlFactory,
     IClipboardControlFactory <IClipboardFileCollectionData, IClipboardFileCollectionDataControl> clipboardFileCollectionControlFactory)
 {
     this.dataSourceService                     = dataSourceService;
     this.fileIconService                       = fileIconService;
     this.memoryHandleFactory                   = memoryHandleFactory;
     this.clipboardFileControlFactory           = clipboardFileControlFactory;
     this.clipboardFileCollectionControlFactory = clipboardFileCollectionControlFactory;
 }
示例#7
0
        public StatusViewModel(IRepositoryService repositoryService, IFileIconService iconService, Status status)
        {
            Status = status;
            PathInRepository = status.FilePath.GetRelativeTo(repositoryService.BaseDirectory);
            StatusText = status.FileStatus.ToString();
            FullPath = status.FilePath;

            if ( (status.FileStatus & FileStatus.Modified) != 0 )
                StatusColor = _brushModified;
            else if (status.FileStatus == FileStatus.Untracked)
                StatusColor = _brushUntracked;
            else if (status.FileStatus == FileStatus.Added)
                StatusColor = _brushStaged;
            else if (status.FileStatus == FileStatus.Removed || status.FileStatus == FileStatus.RenameSource)
                StatusColor = _brushDeleted;
            else
                StatusColor = _brushDefault;

            Icon = iconService.GetIcon(status.FilePath);
        }
 protected virtual StatusViewModel CreateStatusViewModel(IRepositoryService repositoryService, IFileIconService iconService, Status s)
 {
     return new StatusViewModel(repositoryService, iconService, s);
 }
 protected override StatusViewModel CreateStatusViewModel(IRepositoryService repositoryService, IFileIconService iconService, Git.Status s)
 {
     var status = base.CreateStatusViewModel(repositoryService, iconService, s);
     status.ProjectName = _solutionService.GetNameOfParentProject(s.FilePath);
     return status;
 }
 public VSPendingChangesViewModel(IRepositoryService repositoryService, IFileIconService iconService, GitWorkingTreeChangedEvent workingTreeChangedEvent)
     : base(repositoryService, iconService, workingTreeChangedEvent)
 {
 }