Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProfileEditController"/> class.
 /// </summary>
 /// <param name="accountManager">The account manager.</param>
 /// <param name="profileManager">The profile manager.</param>
 public ProfileController(IProfileManager profileManager, IUserManager userManager, IJobManager jobManager)
 {
     // _accountManager = accountManager;
     _profileManager = profileManager;
     _userManager    = userManager;
     _jobManager     = jobManager;
 }
Exemplo n.º 2
0
        public static void SeedUsers(UserManager <User> userManager, IProfileManager profileManager, ILogger logger)
        {
            var superUser = new User
            {
                UserName       = "******",
                Email          = "*****@*****.**",
                EmailConfirmed = true
            };
            var user = userManager.FindByNameAsync(superUser.UserName).Result;

            if (user is null)
            {
                var result = userManager.CreateAsync(superUser, "Qwerty1").Result;
                if (result.Succeeded)
                {
                    userManager.AddToRoleAsync(superUser, "Admin").Wait();
                    profileManager.CreateProfileAsync(superUser.Id).Wait();
                    logger.LogInformation($"Create Admin: Success");
                }
                else
                {
                    logger.LogError($"Create Admin: {result.Errors}");
                }
            }
        }
Exemplo n.º 3
0
        public SignInResponseGenerator(ILogger <SignInResponseGenerator> logger,
                                       IRelyingPartyStore relyingPartyStore,
                                       IProfileManager profileManager,
                                       IKeyMaterialService keyService,
                                       IOptions <FederationGatewayOptions> options
                                       )
        {
            if (relyingPartyStore == null)
            {
                throw new ArgumentNullException(nameof(relyingPartyStore));
            }
            if (profileManager == null)
            {
                throw new ArgumentNullException(nameof(profileManager));
            }
            if (keyService == null)
            {
                throw new ArgumentNullException(nameof(keyService));
            }
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            _logger            = logger;
            _relyingPartyStore = relyingPartyStore;
            _profileManager    = profileManager;
            _keyService        = keyService;
            _options           = options.Value;
        }
Exemplo n.º 4
0
        private static void RequestFirstProfileNameFromUser(IProfileManager profileManager)
        {
            IProfileNameValidator validator = DependencyInjection.Container.Instance.Resolve <IProfileNameValidator>();
            Func <string, Tuple <bool, string> > ValidateProfileName = (name) =>
            {
                if (validator.Validate(name))
                {
                    return(Tuple.Create(true, (string)null));
                }
                else
                {
                    return(Tuple.Create(false, "Invalid profile name"));
                }
            };
            PromptWindow prompt = new PromptWindow("Profile name", "Please provide the name of your first profile", ValidateProfileName);

            // Keep the user here until they fill it out
            while (prompt.DialogResult != true)
            {
                prompt.ShowDialog();
            }

            profileManager.Create(prompt.Input);
            profileManager.OpenProfile(prompt.Input, emitMessage: false);
        }
Exemplo n.º 5
0
 public AccountsController(IUserService userService, SignInManager <User> signInManager, IProfileManager profileManager, IHostingEnvironment hostingEnvironment)
 {
     _userService        = userService;
     _hostingEnvironment = hostingEnvironment;
     _signInManager      = signInManager;
     _profileManager     = profileManager;
 }
Exemplo n.º 6
0
        public SolrProfileManager(IProfileManager profileManager)
        {
            _profileManager = profileManager;

            InitializeComponent();
            RefreshList();

            var editLink = new DataGridViewLinkColumn
            {
                UseColumnTextForLinkValue = true,
                HeaderText       = "Edit",
                DataPropertyName = "lnkColumn",
                LinkBehavior     = LinkBehavior.SystemDefault,
                Text             = "Edit"
            };

            profileGrid.Columns.Add(editLink);

            var deleteLink = new DataGridViewLinkColumn
            {
                UseColumnTextForLinkValue = true,
                HeaderText       = "Delete",
                DataPropertyName = "lnkColumn",
                LinkBehavior     = LinkBehavior.SystemDefault,
                Text             = "Delete"
            };

            profileGrid.Columns.Add(deleteLink);
        }
        public ProfileController()
        {
            string profilepath    = Dal.DalConfiguration.Configuration.ProfilePath;
            string pathToProfiles = HttpContext.Current.Server.MapPath(profilepath);

            _administrationManager = new ProfileManager(pathToProfiles);
        }
Exemplo n.º 8
0
 public SelectProfileStep(WizardModel model, ISelectProfileStepView view, IProfileManager profileManager)
     : base(model, view)
 {
     _profileManager     = profileManager;
     View.NewProfile    += CreateNewProfile;
     View.DeleteProfile += DeleteProfile;
 }
Exemplo n.º 9
0
 public RankPlotViewModel(IProfileManager profileManager) : base(profileManager)
 {
     Settings = new RankPlotSettingViewModel(ActiveProfile);
     GeneratePlot();
     MessengerInstance.Register <Messages.NewMatchRecord>(this, OnNewRecord);
     MessengerInstance.Register <Messages.PlotDateRangeChanged>(this, OnPlotDateRangeChange);
 }
Exemplo n.º 10
0
        private static ISimpleClient BuildClient()
        {
            ServiceCollection services = new ServiceCollection();

            IClientBuilder builder = services.AddBackBlazeB2(); //This is a commercial feature

            builder.CoreBuilder.UsePooledClients();             //This is a commercial feature

            builder.CoreBuilder.UseProfileManager()
            .BindConfigToDefaultProfile()
            .UseConsoleSetup()
            .UseDataProtection();        //This is a commercial feature

            IServiceProvider serviceProvider = services.BuildServiceProvider();

            IProfileManager profileManager = serviceProvider.GetRequiredService <IProfileManager>();
            IProfile?       profile        = profileManager.GetDefaultProfile();

            if (profile == null)
            {
                IProfileSetup setup = serviceProvider.GetRequiredService <IProfileSetup>();
                setup.SetupDefaultProfile();
            }

            return(serviceProvider.GetRequiredService <ISimpleClient>());
        }
Exemplo n.º 11
0
        public static S3Client Create(string profileName)
        {
            ServiceCollection services = new ServiceCollection();

            //Here we setup our S3Client
            IS3ClientBuilder builder = services.AddSimpleS3();

            //Here we enable in-memory encryption using Microsoft Data Protection
            builder.CoreBuilder
            .UseProfileManager()
            .BindConfigToProfile(profileName)
            .UseDataProtection();

            //Finally we build the service provider and return the S3Client
            IServiceProvider serviceProvider = services.BuildServiceProvider();

            IProfileManager manager = serviceProvider.GetRequiredService <IProfileManager>();
            IProfile?       profile = manager.GetProfile(profileName);

            //If profile is null, then we do not yet have a profile stored on disk. We use ConsoleSetup as an easy and secure way of asking for credentials
            if (profile == null)
            {
                ConsoleSetup.SetupProfile(manager, profileName);
            }

            return(serviceProvider.GetRequiredService <S3Client>());
        }
Exemplo n.º 12
0
 public IdentityUnitOfWork(ILocationRepository _locationRepository,
                           IProfileManager _profileManager,
                           AppDBContext db,
                           SignInManager <User> signInManager,
                           UserManager <User> userManager,
                           RoleManager <IdentityRole> roleManager,
                           IPhotoRepository _photoRepository,
                           ICategoryRepository _categoriesRepository,
                           IUserCategoryRepository _userCategoryRepository,
                           IEventCategoryRepository _eventCategoryRepository,
                           IEventPhotoRepository _eventPhotoRepository,
                           IEventRepository _eventRepository,
                           IEventVisitorsRepository _eventVisitorsRepository)
 {
     Database                = db;
     UserManager             = userManager;
     RoleManager             = roleManager;
     SignInManager           = signInManager;
     LocationRepository      = _locationRepository;
     ProfileManager          = _profileManager;
     PhotoRepository         = _photoRepository;
     CategoryRepository      = _categoriesRepository;
     UserCategoryRepository  = _userCategoryRepository;
     EventCategoryRepository = _eventCategoryRepository;
     EventPhotoRepository    = _eventPhotoRepository;
     EventRepository         = _eventRepository;
     EventVisitorsRepository = _eventVisitorsRepository;
 }
Exemplo n.º 13
0
 internal Presenter(ICopyEngine copyEngine, ICopyViewer copyViewer, DirectoryEngine directoryEngine, SynchronizeEngine synchronizeEngine, IProfileManager profileManager)
 {
     _copyEngine        = copyEngine;
     _copyViewer        = copyViewer;
     _directoryEngine   = directoryEngine;
     _synchronizeEngine = synchronizeEngine;
     _copyViewer.OnPreviousSelectionSelectedIndexChanged += new PreviousSelectionSelectedIndexChangedHandler(_copyViewer_OnPreviousSelectionSelectedIndexChanged);
     _copyViewer.OnRemovePreviousSelection += new RemovePreviousSelectionHandler(_copyViewer_OnRemovePreviousSelection);
     _copyViewer.OnChooseNewBaseDirectory  += new ChooseNewBaseDirectoryHandler(_copyViewer_OnChooseNewBaseDirectory);
     _copyViewer.OnChooseOldBaseDirectory  += new ChooseOldBaseDirectoryHandler(_copyViewer_OnChooseOldBaseDirectory);
     _copyViewer.OnCopyNewBaseDirectory    += new CopyNewBaseDirectoryHandler(_copyViewer_OnCopyNewBaseDirectory);
     _copyViewer.OnCopyOldBaseDirectory    += new CopyOldBaseDirectoryHandler(_copyViewer_OnCopyOldBaseDirectory);
     _copyViewer.OnCopyAction   += new CopyActionHandler(_copyViewer_OnCopyAction);
     _copyViewer.OnDeleteAction += new DeleteActionHandler(_copyViewer_OnDeleteAction);
     _copyViewer.OnSynchronizePreventDeleteAction += new SynchronizePreventDeleteActionHandler(_copyViewer_OnSynchronizePreventDeleteAction);
     _copyViewer.OnSynchronizeAction        += new SynchronizeActionHandler(_copyViewer_OnSynchronizeAction);
     _copyViewer.OnSynchronizeAllAction     += new SynchronizeAllActionHandler(_copyViewer_OnSynchronizeAllAction);
     _copyViewer.OnSynchronizePlusAction    += new SynchronizePlusActionHandler(_copyViewer_OnSynchronizePlusAction);
     _copyViewer.OnSynchronizePlusAllAction += new SynchronizePlusAllActionHandler(_copyViewer_OnSynchronizePlusAllAction);
     _copyViewer.OnCancelAction             += new CancelActionHandler(_copyViewer_OnCancelAction);
     _profileManager          = profileManager;
     _currentActivityProgress = new ProgressLink();
     _overallProgress         = new ProgressLink();
     _copyViewer.EnableControls(true);
     LoadParameters();
     RefreshCombo();
 }
Exemplo n.º 14
0
 public IdentityUnitOfWork(string connectionString)
 {
     db             = new ApplicationContext(connectionString);
     UserManager    = new AppUserManager(new UserStore <AppUser>(db));
     RoleManager    = new AppRoleManager(new RoleStore <AppRole>(db));
     ProfileManager = new ProfileManager(db);
 }
Exemplo n.º 15
0
        public FDesktop(IEmailer emailer, ImageSaver imageSaver, StringWrapper stringWrapper, AppConfigManager appConfigManager, RecoveryManager recoveryManager, IScannedImageImporter scannedImageImporter, AutoUpdaterUI autoUpdaterUI, OcrDependencyManager ocrDependencyManager, IProfileManager profileManager, IScanPerformer scanPerformer, IScannedImagePrinter scannedImagePrinter, ChangeTracker changeTracker, EmailSettingsContainer emailSettingsContainer, FileNamePlaceholders fileNamePlaceholders, ImageSettingsContainer imageSettingsContainer, PdfSettingsContainer pdfSettingsContainer, PdfSaver pdfSaver, IErrorOutput errorOutput)
        {
            this.emailer = emailer;
            this.imageSaver = imageSaver;
            this.stringWrapper = stringWrapper;
            this.appConfigManager = appConfigManager;
            this.recoveryManager = recoveryManager;
            this.scannedImageImporter = scannedImageImporter;
            this.autoUpdaterUI = autoUpdaterUI;
            this.ocrDependencyManager = ocrDependencyManager;
            this.profileManager = profileManager;
            this.scanPerformer = scanPerformer;
            this.scannedImagePrinter = scannedImagePrinter;
            this.changeTracker = changeTracker;
            this.emailSettingsContainer = emailSettingsContainer;
            this.fileNamePlaceholders = fileNamePlaceholders;
            this.imageSettingsContainer = imageSettingsContainer;
            this.pdfSettingsContainer = pdfSettingsContainer;
            this.pdfSaver = pdfSaver;
            this.errorOutput = errorOutput;
            InitializeComponent();

            thumbnailList1.MouseWheel += thumbnailList1_MouseWheel;
            Shown += FDesktop_Shown;
            FormClosing += FDesktop_FormClosing;
            Closed += FDesktop_Closed;
        }
Exemplo n.º 16
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AccountController"/> class.
        /// </summary>
        /// <param name="profileManager">The profile manager.</param>
        /// <param name="userManager">The user manager.</param>
        /// <param name="signInManager">The sign in manager.</param>
        /// <param name="authenticationManager">The authentication manager.</param>
        /// <exception cref="ArgumentNullException">
        /// profileManager
        /// or
        /// userManager
        /// or
        /// signInManager
        /// or
        /// authenticationManager
        /// </exception>
        public AccountController(
            IProfileManager profileManager,
            ApplicationUserManager userManager,
            ApplicationSignInManager signInManager,
            IAuthenticationManager authenticationManager)
        {
            if (profileManager == null)
            {
                throw new ArgumentNullException("profileManager");
            }

            if (userManager == null)
            {
                throw new ArgumentNullException("userManager");
            }

            if (signInManager == null)
            {
                throw new ArgumentNullException("signInManager");
            }

            if (authenticationManager == null)
            {
                throw new ArgumentNullException("authenticationManager");
            }

            _profileManager        = profileManager;
            _userManager           = userManager;
            _signInManager         = signInManager;
            _authenticationManager = authenticationManager;
        }
Exemplo n.º 17
0
 public ProfileActionInvocationFacet(IActionInvocationFacet underlyingFacet, IProfileManager profileManager)
     : base(underlyingFacet.Specification)
 {
     this.underlyingFacet = underlyingFacet;
     this.profileManager  = profileManager;
     identifier           = underlyingFacet.Specification.Identifier;
 }
Exemplo n.º 18
0
 public Profile(uint idClient, IProfileManager profileManager, IProfileContactManager profileContactManager)
 {
     IdClient = idClient;
     //Бросаем исключения в вызывающий код, в случае отсутствия ссылок, поскольку рискуем получить неконсистентный объект
     _profileManager        = profileManager ?? throw new ArgumentException("profileManager is not must be null");
     _profileContactManager = profileContactManager ?? throw new ArgumentException("profileContactManager is not must be null");
 }
        public static async Task ShowEditProfileDialog(IProfileManager viewModel, IDialogCoordinator dialogCoordinator, ProfileInfo selectedProfile)
        {
            var customDialog = new CustomDialog
            {
                Title = Localization.Resources.Strings.EditProfile,
                Style = (Style)Application.Current.FindResource("ProfileMetroDialog")
            };

            var profileViewModel = new ProfileViewModel(async instance =>
            {
                await dialogCoordinator.HideMetroDialogAsync(viewModel, customDialog);
                viewModel.OnProfileDialogClose();

                ProfileManager.RemoveProfile(selectedProfile);

                AddProfile(instance);
            }, async instance =>
            {
                await dialogCoordinator.HideMetroDialogAsync(viewModel, customDialog);
                viewModel.OnProfileDialogClose();
            }, ProfileManager.GetGroups(), ProfileEditMode.Edit, selectedProfile);

            customDialog.Content = new ProfileDialog
            {
                DataContext = profileViewModel
            };

            viewModel.OnProfileDialogOpen();
            await dialogCoordinator.ShowMetroDialogAsync(viewModel, customDialog);
        }
Exemplo n.º 20
0
 public ConsoleProfileSetup(IProfileManager profileManager, IInputValidator inputValidator, IRegionConverter regionConverter, IRegionData regionData)
 {
     _profileManager  = profileManager;
     _inputValidator  = inputValidator;
     _regionConverter = regionConverter;
     _regionData      = regionData;
 }
Exemplo n.º 21
0
        public void Save()
        {
            ProtectedSettings toSave = new ProtectedSettings(Settings);

            toSave.Proxy = new ProxySetting(App.Kernel.Get <ProxyManager>().Settings);
            IProfileManager ProfileManager = App.Kernel.Get <IProfileManager>();

            if (ProfileManager.DefaultProfile != null)
            {
                toSave.DefaultProfile = ProfileManager.DefaultProfile.Id;
            }
            if (ProfileManager.Profiles != null)
            {
                LoginManager loginManager = App.Kernel.Get <LoginManager>();
                foreach (Profile profile in ProfileManager.Profiles)
                {
                    ProtectedProfile protectedProfile = new ProtectedProfile(profile);
                    LoginData        login            = loginManager.GetCredentials(profile);
                    if (login != null)
                    {
                        protectedProfile.Login = new LoginData(login);
                    }
                    toSave.Profiles.Add(protectedProfile);
                }
            }
            new FileIOPermission(FileIOPermissionAccess.Write, SettingsFile).Assert();
            XmlSerializer writer = new XmlSerializer(typeof(ProtectedSettings));

            using (var file = new StreamWriter(SettingsFile)) {
                writer.Serialize(file, toSave);
            }
        }
Exemplo n.º 22
0
 public ScanPerformer(IScanDriverFactory driverFactory, IErrorOutput errorOutput, IAutoSave autoSave, AppConfigManager appConfigManager, IProfileManager profileManager)
 {
     this.driverFactory = driverFactory;
     this.errorOutput = errorOutput;
     this.autoSave = autoSave;
     this.appConfigManager = appConfigManager;
     this.profileManager = profileManager;
 }
Exemplo n.º 23
0
 public FProfiles(IProfileManager profileManager, AppConfigManager appConfigManager, IconButtonSizer iconButtonSizer, IScanPerformer scanPerformer)
 {
     this.profileManager = profileManager;
     this.appConfigManager = appConfigManager;
     this.iconButtonSizer = iconButtonSizer;
     this.scanPerformer = scanPerformer;
     InitializeComponent();
 }
 public ProxyServer(IProxyServerConfiguration proxyServerConfiguration, IProfileManager profileManager, IProxyCache proxyCache, CertificateGenerator certificateGenerator, ICertificateManager certificateManager)
 {
     _proxyServerConfiguration = proxyServerConfiguration;
     _profileManager = profileManager;
     _proxyCache = proxyCache;
     _certificateGenerator = certificateGenerator;
     _certificateManager = certificateManager;
     ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
 }
 /// <summary>
 /// Initializes a new instance of <see cref="AbstractPageControl"/> for specified <see cref="ILanguageManager"/>,
 /// <see cref="IWindowManager"/> and <see cref="IProfileManager"/>.
 /// </summary>
 /// <param name="LanguageManager">LanguageManager API</param>
 /// <param name="WindowManager">WindowManager API</param>
 /// <param name="ProfileManager">ProfileManager API</param>
 public AbstractPageControl(ILanguageManager LanguageManager, IWindowManager WindowManager, IProfileManager ProfileManager)
     : base(LanguageManager, WindowManager)
 {
     this.Container = new PageContainer(this);
     if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(new DependencyObject())) {
         this.ProfileManager = ProfileManager;
         ProfileManager.ProfileChanged += OnProfileChangedInternal;
     }
 }
Exemplo n.º 26
0
 public UserManager(IMembershipInfoProvider membershipAdapter, IUserRepository userRepository, 
     IUserMapper userMapper, ISession session, IProfileManager profileManager, IHttpUserFetcher userfetcher)
 {
     _membershipAdapter = membershipAdapter;
     _userRepository = userRepository;
     _userMapper = userMapper;
     _session = session;
     _profileManager = profileManager;
     _UserFetcher = userfetcher;
 }
Exemplo n.º 27
0
 public BatchState(IScanPerformer scanPerformer, IProfileManager profileManager, FileNamePlaceholders fileNamePlaceholders, IPdfExporter pdfExporter, IOperationFactory operationFactory, PdfSettingsContainer pdfSettingsContainer, UserConfigManager userConfigManager, IFormFactory formFactory)
 {
     this.scanPerformer = scanPerformer;
     this.profileManager = profileManager;
     this.fileNamePlaceholders = fileNamePlaceholders;
     this.pdfExporter = pdfExporter;
     this.operationFactory = operationFactory;
     this.pdfSettingsContainer = pdfSettingsContainer;
     this.userConfigManager = userConfigManager;
     this.formFactory = formFactory;
 }
Exemplo n.º 28
0
 public AutomatedScanning(AutomatedScanningOptions options, IProfileManager profileManager, IScanPerformer scanPerformer, IErrorOutput errorOutput, IEmailer emailer, IScannedImageImporter scannedImageImporter, IUserConfigManager userConfigManager, PdfSettingsContainer pdfSettingsContainer, FileNamePlaceholders fileNamePlaceholders, ImageSettingsContainer imageSettingsContainer, IOperationFactory operationFactory)
 {
     this.options = options;
     this.profileManager = profileManager;
     this.scanPerformer = scanPerformer;
     this.errorOutput = errorOutput;
     this.emailer = emailer;
     this.scannedImageImporter = scannedImageImporter;
     this.userConfigManager = userConfigManager;
     this.pdfSettingsContainer = pdfSettingsContainer;
     this.fileNamePlaceholders = fileNamePlaceholders;
     this.imageSettingsContainer = imageSettingsContainer;
     this.operationFactory = operationFactory;
 }
Exemplo n.º 29
0
        public FBatchScan(IProfileManager profileManager, AppConfigManager appConfigManager, IconButtonSizer iconButtonSizer, IScanPerformer scanPerformer, IUserConfigManager userConfigManager, BatchScanPerformer batchScanPerformer, IErrorOutput errorOutput, ThreadFactory threadFactory)
        {
            this.profileManager = profileManager;
            this.appConfigManager = appConfigManager;
            this.iconButtonSizer = iconButtonSizer;
            this.scanPerformer = scanPerformer;
            this.userConfigManager = userConfigManager;
            this.batchScanPerformer = batchScanPerformer;
            this.errorOutput = errorOutput;
            this.threadFactory = threadFactory;
            InitializeComponent();

            RestoreFormState = false;
        }
 public DeployWizardController(WizardModel model, IDeployWizardView view, IProfileManager profileManager,
     IEnumerable<IWizardStep<IStepView>> steps, IWizardStep<IStepView> finishStep)
 {
     _model = model;
     _model.ProfileChanged += ChangeTitle;
     _profileManager = profileManager;
     _view = view;
     _steps = steps;
     _finishStep = finishStep;
     _view.PreviousClicked += Previous;
     _view.NextClicked += Next;
     _view.FastForwardClicked += FastForward;
     _view.SaveClicked += SaveProfile;
     _view.FinishClicked += Finish;
     _view.CloseClicked += Close;
     ShowCurrentStep();
 }
Exemplo n.º 31
0
 public HomeController(IProfileManager profileManager)
 {
     this.profileManager = profileManager;
 }
Exemplo n.º 32
0
        public FDesktop(IEmailer emailer, StringWrapper stringWrapper, AppConfigManager appConfigManager, RecoveryManager recoveryManager, IScannedImageImporter scannedImageImporter, OcrDependencyManager ocrDependencyManager, IProfileManager profileManager, IScanPerformer scanPerformer, IScannedImagePrinter scannedImagePrinter, ChangeTracker changeTracker, EmailSettingsContainer emailSettingsContainer, FileNamePlaceholders fileNamePlaceholders, ImageSettingsContainer imageSettingsContainer, PdfSettingsContainer pdfSettingsContainer, StillImage stillImage, IOperationFactory operationFactory, IUserConfigManager userConfigManager, KeyboardShortcutManager ksm, ThumbnailRenderer thumbnailRenderer, DialogHelper dialogHelper)
        {
            this.emailer = emailer;
            this.stringWrapper = stringWrapper;
            this.appConfigManager = appConfigManager;
            this.recoveryManager = recoveryManager;
            this.scannedImageImporter = scannedImageImporter;
            this.ocrDependencyManager = ocrDependencyManager;
            this.profileManager = profileManager;
            this.scanPerformer = scanPerformer;
            this.scannedImagePrinter = scannedImagePrinter;
            this.changeTracker = changeTracker;
            this.emailSettingsContainer = emailSettingsContainer;
            this.fileNamePlaceholders = fileNamePlaceholders;
            this.imageSettingsContainer = imageSettingsContainer;
            this.pdfSettingsContainer = pdfSettingsContainer;
            this.stillImage = stillImage;
            this.operationFactory = operationFactory;
            this.userConfigManager = userConfigManager;
            this.ksm = ksm;
            this.thumbnailRenderer = thumbnailRenderer;
            this.dialogHelper = dialogHelper;
            InitializeComponent();

            Shown += FDesktop_Shown;
            FormClosing += FDesktop_FormClosing;
            Closed += FDesktop_Closed;
        }
Exemplo n.º 33
0
 public ProfileController()
 {
     profileManager = new ProfileManager();
 }
Exemplo n.º 34
0
 public ProfileManagerViewModel(IProfileManager profileManager)
 {
     _profileManager = profileManager;
     AvailableProfiles = new BindableCollection<Profile>();
 }
 public ProfileCallbackFacet(ProfileEvent associatedEvent, ICallbackFacet underlyingFacet, IProfileManager profileManager) : base(underlyingFacet.FacetType, underlyingFacet.Specification) {
     this.associatedEvent = associatedEvent;
     this.underlyingFacet = underlyingFacet;
     this.profileManager = profileManager;
 }
Exemplo n.º 36
0
 public OneTimeLogger(IProfileManager profileManager)
 {
     ProfileManager = profileManager;
 }
 public IVRMainController(IProfileManager profileManager, IRefugeesUnitedAccountManager refUnitedAcctManager, IIVRMainLogic ivrMainLogic)
 {
     this.profileManager = profileManager;
       this.refUnitedAcctManager = refUnitedAcctManager;
       this.ivrMainLogic = ivrMainLogic;
 }
Exemplo n.º 38
0
 public IVREntryLogic(IProfileManager profileManager)
 {
     this.profileManager = profileManager;
 }
 public ProfileActionInvocationFacet(IActionInvocationFacet underlyingFacet, IProfileManager profileManager)
     : base(underlyingFacet.Specification) {
     this.underlyingFacet = underlyingFacet;
     this.profileManager = profileManager;
     identifier = underlyingFacet.Specification.Identifier;
 }
 public AccountController(IRefugeesUnitedAccountManager refUnitedManager, IProfileManager profileManager)
 {
     this.refUnitedAccountManager = refUnitedManager;
       this.profileManager = profileManager;
 }
 public IVRBroadcastLogic(IBroadcastManager broadcastManager, IIVRRouteProvider ivrRouteProvider, IProfileManager profileManager)
 {
     this.broadcastManager = broadcastManager;
       this.ivrRouteProvider = ivrRouteProvider;
       this.profileManager = profileManager;
 }
 public IVRAuthenticateLogic(IProfileManager profileManager, IIVRRouteProvider routeProvider)
 {
     this.profileManager = profileManager;
       this.routeProvider = routeProvider;
 }
Exemplo n.º 43
0
        public FDesktop(IEmailer emailer, StringWrapper stringWrapper, AppConfigManager appConfigManager, RecoveryManager recoveryManager, IScannedImageImporter scannedImageImporter, AutoUpdaterUI autoUpdaterUI, OcrDependencyManager ocrDependencyManager, IProfileManager profileManager, IScanPerformer scanPerformer, IScannedImagePrinter scannedImagePrinter, ChangeTracker changeTracker, EmailSettingsContainer emailSettingsContainer, FileNamePlaceholders fileNamePlaceholders, ImageSettingsContainer imageSettingsContainer, PdfSettingsContainer pdfSettingsContainer, StillImage stillImage, IOperationFactory operationFactory, IUserConfigManager userConfigManager, IScannedImageFactory scannedImageFactory)
        {
            this.emailer = emailer;
            this.stringWrapper = stringWrapper;
            this.appConfigManager = appConfigManager;
            this.recoveryManager = recoveryManager;
            this.scannedImageImporter = scannedImageImporter;
            this.autoUpdaterUI = autoUpdaterUI;
            this.ocrDependencyManager = ocrDependencyManager;
            this.profileManager = profileManager;
            this.scanPerformer = scanPerformer;
            this.scannedImagePrinter = scannedImagePrinter;
            this.changeTracker = changeTracker;
            this.emailSettingsContainer = emailSettingsContainer;
            this.fileNamePlaceholders = fileNamePlaceholders;
            this.imageSettingsContainer = imageSettingsContainer;
            this.pdfSettingsContainer = pdfSettingsContainer;
            this.stillImage = stillImage;
            this.operationFactory = operationFactory;
            this.userConfigManager = userConfigManager;
            this.scannedImageFactory = scannedImageFactory;
            InitializeComponent();

            Shown += FDesktop_Shown;
            FormClosing += FDesktop_FormClosing;
            Closed += FDesktop_Closed;
        }
Exemplo n.º 44
0
 public IVRMainLogic(IProfileManager profileManager, IRefugeesUnitedAccountManager refUnitedAcctManager, IIVRRouteProvider routeProvider)
 {
     this.profileManager = profileManager;
       this.refUnitedAcctManager = refUnitedAcctManager;
       this.routeProvider = routeProvider;
 }