public PendingChangesViewModel(ToolWindowEditSite site) { _editSite = site; _svnManager = _editSite.Host.GetSharedExportedValue <SvnManagerPlugin>(); InitialLoad(); _svnManager.SvnStatusUpdatedEvent += SvnManagerOnSvnStatusUpdatedEvent; BindingOperations.EnableCollectionSynchronization(FileStatus, _lock); CommitCommand = new RelayCommand(DoCommitCommand); }
public ProjectItemOverlayService(ICompositionHost host) { _host = host; _lockOverlay = ResourceHelpers.LoadBitmapImage(typeof(SvnManagerPlugin), "Resources/LockControls.png"); _modifiedOverlay = ResourceHelpers.LoadBitmapImage(typeof(SvnManagerPlugin), "Resources/Modified.png"); _unmodifiedOverlay = ResourceHelpers.LoadBitmapImage(typeof(SvnManagerPlugin), "Resources/Unmodified.png"); _lockedModifiedOverlay = ResourceHelpers.LoadBitmapImage(typeof(SvnManagerPlugin), "Resources/LockedModified.png"); _lockedUnmodifiedOverlay = ResourceHelpers.LoadBitmapImage(typeof(SvnManagerPlugin), "Resources/LockedUnmodified.png"); _addedOverlay = ResourceHelpers.LoadBitmapImage(typeof(SvnManagerPlugin), "Resources/Added.png"); _svnManager = _host.GetSharedExportedValue <SvnManagerPlugin>(); }