public CadReaderPlugin(IObjectModifier modifier, IObjectsRepository repository, IPersonalSettings personalSettings)
 {
     _objectModifier    = modifier;
     _objectsRepository = repository;
     _listSpec          = new List <Specification>();
     _loader            = new ObjectLoader(repository);
 }
Beispiel #2
0
 public ProcessPageViewModel(CreationInfo creationInfo, IObjectModifier modifier, IObjectsRepository repository, IFileProvider fileProvider)
 {
     _creationInfo    = creationInfo;
     _modifier        = modifier;
     _repository      = repository;
     _fileProvider    = fileProvider;
     _currentPersonId = repository.GetCurrentPerson().Id;
 }
Beispiel #3
0
 public ObjectMenu(IObjectsRepository objectsRepository, IFileProvider fileProvider, ITabServiceProvider tabServiceProvider, IObjectModifier objectModifier)
 {
     _objectsRepository  = objectsRepository;
     _objectModifier     = objectModifier;
     _fileProvider       = fileProvider;
     _tabServiceProvider = tabServiceProvider;
     _fileModifier       = new FileModifier(_objectModifier, _objectsRepository);
 }
 public SpwReaderPlugin(IObjectModifier modifier, IObjectsRepository repository, IPersonalSettings personalSettings, IFileProvider fileProvider)
 {
     _objectModifier = modifier;
     _objectsRepository = repository;
     _pilotTypes = _objectsRepository.GetTypes();
     _loader = new ObjectLoader(repository);
     _dataObjects = new List<IDataObject>();
     _fileProvider = fileProvider;
 }
Beispiel #5
0
        public AnnulHandler(IObjectsRepository repository, IObjectModifier modifier)
        {
            _modifier = modifier;

            var userStates       = repository.GetUserStates();
            var annuledUserState = userStates.FirstOrDefault(x => x.Name == Const.AnnuledUserState);

            if (annuledUserState != null)
            {
                _annuledUserStateId = annuledUserState.Id.ToString();
            }
        }
Beispiel #6
0
        public UserStateAnnuler(IObjectsRepository repository, IObjectModifier objectModifier)
        {
            _repository      = repository;
            _objectModifier  = objectModifier;
            _supportingTypes = new Dictionary <int, string>();

            var annuledUserState = _repository.GetUserStates().FirstOrDefault(s => s.Name.Equals(Const.AnnuledUserState));

            if (annuledUserState == null)
            {
                throw new ExpectedExtensionException(nameof(SubtreeUserStateAnuller), $"Cannot find \"{Const.AnnuledUserState}\" UserState");
            }
            _annuledUserStateId = annuledUserState.Id;

            _currentPerson = _repository.GetCurrentPerson();

            FillTypesWithUserState();
        }
Beispiel #7
0
        public ProjectCloneCreator(IObjectsRepository repository, IPilotDialogService pilotDialogService, IAttributeFormatParser attributeFormatParser,
                                   IObjectModifier modifier, IFileProvider fileProvider, ITabServiceProvider tabServiceProvider)
        {
            _repository            = repository;
            _pilotDialogService    = pilotDialogService;
            _attributeFormatParser = attributeFormatParser;
            _fileProvider          = fileProvider;
            _tabServiceProvider    = tabServiceProvider;
            _modifier = modifier;

            InitColorScheme(pilotDialogService);

            Icon = "menu_icon_dark.svg";
            if (pilotDialogService.Theme == ThemeNames.Jedi)
            {
                Icon = "menu_icon_light.svg";
            }
        }
Beispiel #8
0
        public ManagerEdition(IObjectsRepository repository,
                              IObjectModifier modifier,
                              IPilotDialogService dialogService,
                              ISearchService search,
                              IFileProvider fileProvider,
                              ITabServiceProvider tabServiceProvider)
        {
            var accentColor = (Color)ColorConverter.ConvertFromString(dialogService.AccentColor);

            ColorScheme.Initialize(accentColor);

            _repository         = repository;
            _modifier           = modifier;
            _search             = search;
            _fileProvider       = fileProvider;
            _tabServiceProvider = tabServiceProvider;
            _dialogService      = dialogService;
            InitializeObjects();
        }
Beispiel #9
0
 public ProjectCloneToolbar(IObjectsRepository repository, IPilotDialogService pilotDialogService, IAttributeFormatParser attributeFormatParser,
                            IObjectModifier modifier, IFileProvider fileProvider, ITabServiceProvider tabServiceProvider)
 {
     _projectCloneCreator = new ProjectCloneCreator(repository, pilotDialogService, attributeFormatParser, modifier, fileProvider, tabServiceProvider);
 }
Beispiel #10
0
 public ObjectUploader(IObjectModifier objectModifier, IServerConnector connector)
 {
     _objectModifier = objectModifier;
     _connector      = connector;
 }
 public ObjectContextMenuBuilder(IObjectsRepository repository, IObjectModifier objectModifier)
 {
     _repository     = repository;
     _objectModifier = objectModifier;
 }
 public ObjectUploader(RemoteStorageThread remoteStorage, IObjectModifier objectModifier, IServerConnector connector)
 {
     _remoteStorage  = remoteStorage;
     _objectModifier = objectModifier;
     _connector      = connector;
 }
Beispiel #13
0
 public FileModifier(IObjectModifier objectModifier, IObjectsRepository objectsRepository)
 {
     _objectModifier    = objectModifier;
     _objectsRepository = objectsRepository;
 }
 public UpdateStructProcessPageViewModel(CreationInfo creationInfo, IObjectModifier modifier, IObjectsRepository repository, IFileProvider fileProvider)
     : base(creationInfo, modifier, repository, fileProvider)
 {
 }