コード例 #1
0
 public PendingChangesViewModel(ToolWindowEditSite site)
 {
     _editSite   = site;
     _svnManager = _editSite.Host.GetSharedExportedValue <SvnManagerPlugin>();
     InitialLoad();
     _svnManager.SvnStatusUpdatedEvent += SvnManagerOnSvnStatusUpdatedEvent;
     BindingOperations.EnableCollectionSynchronization(FileStatus, _lock);
     CommitCommand = new RelayCommand(DoCommitCommand);
 }
コード例 #2
0
        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>();
        }