コード例 #1
0
 public FotoWareImageField() : base()
 {
     _imageService             = ServiceLocator.ServiceProvider.GetService <IImageService>();
     _statusMessageService     = ServiceLocator.ServiceProvider.GetService <IStatusMessageService>();
     _selectedImageModelMapper = ServiceLocator.ServiceProvider.GetService <ISelectedImageModelMapper>();
     _fotoWareImageJob         = ServiceLocator.ServiceProvider.GetService <IImportFotoWareImageJob>();
 }
コード例 #2
0
 public SelectImageFromFotoWareDialog() : base()
 {
     _authenticationService    = ServiceLocator.ServiceProvider.GetService <IAuthenticationService>();
     _imageService             = ServiceLocator.ServiceProvider.GetService <IImageService>();
     _statusMessageService     = ServiceLocator.ServiceProvider.GetService <IStatusMessageService>();
     _selectedImageModelMapper = ServiceLocator.ServiceProvider.GetService <ISelectedImageModelMapper>();
     _fotoWareImageJob         = ServiceLocator.ServiceProvider.GetService <IImportFotoWareImageJob>();
 }
コード例 #3
0
        public ShellViewModel(IStatusMessageService statusMessageService, ConfigurationService configService)
        {
            myStatusMessageService = statusMessageService;
            myStatusMessageService.Messages.CollectionChanged += OnStatusMessagesChanged;

            myConfigurationService = configService;

            NodeMasksEditorRequest = new InteractionRequest<INotification>();
            OpenFilterEditor = new DelegateCommand(OnOpenFilterEditor);

            SettingsEditorRequest = new InteractionRequest<IConfirmation>();
            OpenSettingsEditor = new DelegateCommand(OnOpenSettingsEditor);

            ShowStatusMessagesRequest = new InteractionRequest<INotification>();
            ShowStatusMessagesCommand = new DelegateCommand(ShowStatusMessages);

            myConfigurationService.ConfigChanged += OnConfigChanged;
        }
コード例 #4
0
        public InheritanceGraphBuilderViewModel(IPresentationCreationService presentationCreationService, IStatusMessageService statusMessageService, InheritanceClient inheritanceClient)
        {
            myPresentationCreationService = presentationCreationService;
            myStatusMessageService        = statusMessageService;
            myInheritanceClient           = inheritanceClient;

            Types      = new ObservableCollection <TypeDescriptor>();
            TypeFilter = OnFilterItem;

            CreateGraphCommand    = new DelegateCommand(CreateGraph, () => TypeToAnalyse != null && IsReady);
            AddToGraphCommand     = new DelegateCommand(AddToGraph, () => TypeToAnalyse != null && IsReady);
            CancelCommand         = new DelegateCommand(OnCancel, () => !IsReady);
            BrowseAssemblyCommand = new DelegateCommand(OnBrowseClicked, () => IsReady);
            ClosedCommand         = new DelegateCommand(OnClosed);

            OpenFileRequest = new InteractionRequest <OpenFileDialogNotification>();

            IsReady           = true;
            IgnoreDotNetTypes = true;
        }
コード例 #5
0
        public PackagingGraphBuilderViewModel(IPresentationCreationService presentationCreationService, IStatusMessageService statusMessageService, PackageAnalysisClient analysisClient)
        {
            myPresentationCreationService = presentationCreationService;
            myStatusMessageService        = statusMessageService;
            myAnalysisClient = analysisClient;

            Document          = new TextDocument();
            Document.Changed += Document_Changed;

            Packages = new ObservableCollection <string>();

            CreateGraphCommand = new DelegateCommand(OnCreateGraph, () => IsReady && Packages.Count > 0);
            CancelCommand      = new DelegateCommand(OnCancel, () => !IsReady);

            ClosedCommand = new DelegateCommand(OnClosed);

            OpenCommand     = new DelegateCommand(OnOpen, () => IsReady);
            OpenFileRequest = new InteractionRequest <OpenFileDialogNotification>();

            myCompletionData = GetType().Assembly.GetTypes()
                               .Where(t => t.Namespace == typeof(SystemPackaging).Namespace)
                               .Where(t => !t.IsAbstract)
                               .Where(t => t.GetCustomAttribute(typeof(CompilerGeneratedAttribute), true) == null)
                               .Select(t => new ElementCompletionData(t))
                               .ToList();

            UsedTypesOnly = true;

            myGraphToSpecSynchronizer = new GraphToSpecSynchronizer(
                () => SpecUtils.Deserialize(Document.Text),
                spec =>
            {
                Document.Text = SpecUtils.Serialize(spec);
                Save();
            });

            IsReady = true;
        }
コード例 #6
0
        public ShellViewModel(IStatusMessageService statusMessageService, ConfigurationService configService)
        {
            myStatusMessageService = statusMessageService;
            myStatusMessageService.Messages.CollectionChanged += OnStatusMessagesChanged;

            myConfigurationService = configService;

            NodeMasksEditorRequest = new InteractionRequest <INotification>();
            OpenFilterEditor       = new DelegateCommand(OnOpenFilterEditor);

            ClusterEditorRequest = new InteractionRequest <INotification>();
            OpenClusterEditor    = new DelegateCommand(OnOpenClusterEditor);

            BookmarksRequest = new InteractionRequest <INotification>();
            OpenBookmarks    = new DelegateCommand(OnOpenBookmarks);

            SettingsEditorRequest = new InteractionRequest <IConfirmation>();
            OpenSettingsEditor    = new DelegateCommand(OnOpenSettingsEditor);

            ShowStatusMessagesRequest = new InteractionRequest <INotification>();
            ShowStatusMessagesCommand = new DelegateCommand(ShowStatusMessages);

            myConfigurationService.ConfigChanged += OnConfigChanged;
        }
コード例 #7
0
 public ImportFotoWareImageJob(IImageService imageService, IStatusMessageService statusMessageService)
 {
     _imageService         = imageService;
     _statusMessageService = statusMessageService;
 }