public ClipboardPersistanceService( IFileManager fileManager, IClipboardDataPackageFactory factory) { this.fileManager = fileManager; this.factory = factory; }
public SyncService(SyncProfile opts, IIndexMapper indexer, IFileManager filemanager, bool simulate, string thismachine) { _localSettings = opts.GetParticipant(thismachine); LocalPath = _localSettings.LocalPath; SharedPath = _localSettings.SharedPath; NumPeers = 0; FileCounts = new Dictionary<string, int>(); SizeLimit = opts.ReserveSpace; Simulate = simulate; FileSearches = opts.SearchPatterns; if (FileSearches.Count == 0) { FileSearches.Add("*.*"); } _sizecache = 0; _options = opts; if (Simulate) { _copyq = new MockFileManager(); _indexer = new MockIndexMapper(); } else { _copyq = filemanager; _indexer = indexer; } _log = new List<string>(); }
DecompileFileTabContentFactory(IFileManager fileManager, IFileTreeNodeDecompiler fileTreeNodeDecompiler, ILanguageManager languageManager, IDecompilationCache decompilationCache, IMethodAnnotations methodAnnotations) { this.fileManager = fileManager; this.fileTreeNodeDecompiler = fileTreeNodeDecompiler; this.languageManager = languageManager; this.decompilationCache = decompilationCache; this.methodAnnotations = methodAnnotations; }
public static void SetFileManager(IFileManager fileManager) { if (fileManager != null) { _getCurrentDirectoryDelegate = fileManager.GetCurrentDirectory; _fileExistsDelegate = fileManager.FileExists; _isAbsolutePathDelegate = fileManager.IsAbsolutePath; _toAbsolutePathDelegate = fileManager.ToAbsolutePath; _readFileDelegate = fileManager.ReadFile; var delegates = new FileManagerDelegates { GetCurrentDirectoryDelegate = Marshal.GetFunctionPointerForDelegate(_getCurrentDirectoryDelegate), FileExistsDelegate = Marshal.GetFunctionPointerForDelegate(_fileExistsDelegate), IsAbsolutePathDelegate = Marshal.GetFunctionPointerForDelegate(_isAbsolutePathDelegate), ToAbsolutePathDelegate = Marshal.GetFunctionPointerForDelegate(_toAbsolutePathDelegate), ReadFileDelegate = Marshal.GetFunctionPointerForDelegate(_readFileDelegate) }; FileManagerMarshaller.SetDelegates(delegates); } else { UnsetFileManager(); } }
public Application(IFileManager googleFileManager, IFileManager localFileManager, FileCacheManager fileCacheManager, MemoryCacheManager memoryCacheManager) { GoogleManager = googleFileManager; LocalManager = localFileManager; FileCacheManager = fileCacheManager; MemoryCacheManager = memoryCacheManager; }
ModuleLoader(Lazy<ITheDebugger> theDebugger, IDebuggerSettings debuggerSettings, IFileManager fileManager, Lazy<IInMemoryModuleManager> inMemoryModuleManager) { this.theDebugger = theDebugger; this.debuggerSettings = debuggerSettings; this.fileManager = fileManager; this.inMemoryModuleManager = inMemoryModuleManager; }
public FileLoader(IFileManager fileManager, Window ownerWindow) { this.fileManager = fileManager; this.ownerWindow = ownerWindow; this.loadedFiles = new List<IDnSpyFile>(); this.hash = new HashSet<IDnSpyFile>(); }
public ShellViewModel( IFileManagerEventSource fileManagerEventSource, IFileManager fileManager, IStateService stateService, IClipboardService clipboardService) { _clipboardService = clipboardService; _stateService = stateService; _stateService.SavingEvent.Subscribe(this.SaveState); _fileManager = fileManager; fileManagerEventSource.OpenFileEventStream.Subscribe(this.OpenFile); this.DisplayName = "Eagle"; this.FollowTail = true; if (Execute.InDesignMode) { this.IsFileOpen = true; this.File = new FileViewModel("Test File"); } else { //this.FilePicker.Items.Add(new FileLocationViewModel("Documents") { SubLocations = { new FileLocationViewModel("File1"), new FileLocationViewModel("File2"), new FileLocationViewModel("File3") } }); //this.FilePicker.Items.Add(new FileLocationViewModel("Projects")); //this.FilePicker.Items.Add(new FileLocationViewModel("Logs")); } }
public FileReport(IConfigurationManager configurationManager, IFileManager fileManager) { _configurationManager = configurationManager; _fileManager = fileManager; InitializeComponent(); }
public IO(IFileManager filemanager, IMessageManager messagemanager, Lang language) { fileManager = filemanager; messageManager = messagemanager; ActiveLanguage = language; WorkPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), "TOWare"); if (!Directory.Exists(WorkPath)) Directory.CreateDirectory(WorkPath); if (!Directory.Exists(LanguagePath)) Directory.CreateDirectory(LanguagePath); if (File.Exists(SettingsFile)) { LoadSettings(); if (File.Exists(Path.Combine(LanguagePath, ActiveSettings.ActiveLanguage + ".towlang"))) LoadLanguage(); else SaveLanguage(); } else { ActiveSettings = new Settings(); SaveSettings(ActiveSettings); SaveLanguage(); } }
public ViewLabels() { _labelTemplateManager = FirstFloor.ModernUI.App.App.Container.GetInstance<ILabelTemplateManager>(); _labelManager = FirstFloor.ModernUI.App.App.Container.GetInstance<ILabelManager>(); _bitmapGenerator = FirstFloor.ModernUI.App.App.Container.GetInstance<IBitmapGenerator>(); _fileManager = FirstFloor.ModernUI.App.App.Container.GetInstance<IFileManager>(); _labelLocation = new CommandLineArgs()["location"]; LabelImages = new ObservableCollection<DisplayLabel>(); InitializeComponent(); DataContext = this; var configDirectory = $@"{AppDomain.CurrentDomain.BaseDirectory}\Config\"; if (_fileManager.CheckDirectoryExists(configDirectory)) { _fsWatcher = new FileSystemWatcher { NotifyFilter = NotifyFilters.LastWrite, Path = configDirectory, Filter = "labels.json", EnableRaisingEvents = true }; _fsWatcher.Changed += FsWatcherOnChanged; GetImages(); } else { ModernDialog.ShowMessage($"An error occurred. The '{configDirectory}' directory could not be found.", "Error", MessageBoxButton.OK, Window.GetWindow(this)); } }
public IDnSpyFile Create(IFileManager fileManager, DnSpyFileInfo fileInfo) { var filename = GetFilename(fileInfo); if (filename != null) return FileManager.CreateDnSpyFileFromFile(fileInfo, filename, fileManager.Settings.UseMemoryMappedIO, fileManager.Settings.LoadPDBFiles, fileManager.AssemblyResolver); return null; }
/// <summary> /// Initializes a new instance of the <see cref="FileFieldMapping"/> class. /// </summary> /// <param name="property"> /// The property. /// </param> /// <param name="nameExpression"> /// The name expression. /// </param> /// <param name="contentExpression"> /// The content expression. /// </param> /// <param name="locationExpression"> /// The location expression. /// </param> /// <param name="typeConverter"> /// The type converter. /// </param> /// <param name="fileManager"> /// The file manager. /// </param> public FileFieldMapping( PropertyInfo property, MappingExpression nameExpression, MappingExpression contentExpression, MappingExpression locationExpression, ITypeConverter typeConverter, IFileManager fileManager) { if (property == null) throw new ArgumentNullException("property"); if (!typeof(IFileProcess).IsAssignableFrom(property.PropertyType)) throw new ArgumentException("The specified property is not a file field."); if (typeConverter == null) throw new ArgumentNullException("typeConverter"); if (fileManager == null) throw new ArgumentNullException("fileManager"); _property = property; _nameExpression = nameExpression; _contentExpression = contentExpression; _locationExpression = locationExpression; _typeConverter = typeConverter; _fileManager = fileManager; }
public IDnSpyFilenameKey CreateKey(IFileManager fileManager, DnSpyFileInfo fileInfo) { var filename = GetFilename(fileInfo); if (filename != null) return new FilenameKey(filename); return null; }
public MainPresenter(IGraphic graphic, IFileManager manager, IMessageService messageService) { _manager = manager; _messageService = messageService; _graphic = graphic; _graphic.FileOpenClick += _graphic_FileOpenClick; }
public TitleRecognizer(IFileManager fileManager, ICacheManager cacheManager, IUserSettingsProvider userSettingsProvider, IEventAggregator eventAggregator, IResourceManager resourceManager) { _fileManager = fileManager; _cacheManager = cacheManager; _userSettingsProvider = userSettingsProvider; _eventAggregator = eventAggregator; _resourceManager = resourceManager; }
public IDnSpyFilenameKey CreateKey(IFileManager fileManager, DnSpyFileInfo fileInfo) { if (fileInfo.Type == MyDnSpyFile.THE_GUID) return new FilenameKey(fileInfo.Name); // Must match the key in MyDnSpyFile.Key // Also check for normal files if (fileInfo.Type == FileConstants.FILETYPE_FILE && IsSupportedFile(fileInfo.Name)) return new FilenameKey(fileInfo.Name); // Must match the key in MyDnSpyFile.Key return null; }
public AbstractTextExportPresenter(MainWindow mainWindow, IWindowManager windowManager, IFileManager fileManager, ITextExporter exporter, string defaultExt) { this.windowManager = windowManager; this.fileManager = fileManager; this.exporter = exporter; connectionViewModels = mainWindow.DataSource.Connections; this.defaultExt = defaultExt; }
public FileForm(IFileManager fileManager, IAddressBookManager addressBookManager, IConfigurationManager configurationManager) { _fileManager = fileManager; _addressBookManager = addressBookManager; _configurationManager = configurationManager; InitializeComponent(); }
public StebsHub(IConstants constants, IMpm mpm, IProcessorManager manager, IFileManager fileManager, IPluginManager pluginManager) { this.Constants = constants; this.Mpm = mpm; this.Manager = manager; this.FileManager = fileManager; this.PluginManager = pluginManager; }
public RecentItemsFolderViewModel(IFileManager fileManager, IFileManagerEventSource fileManagerEventSource) : base("Recent") { _fileManager = fileManager; fileManagerEventSource.OpenFileEventStream .ObserveOnDispatcher() .Subscribe(this.OnFileOpened); }
public IDnSpyFile Create(IFileManager fileManager, DnSpyFileInfo fileInfo) { if (fileInfo.Type == MyDnSpyFile.THE_GUID) return MyDnSpyFile.TryCreate(fileInfo.Name); // Also check for normal files if (fileInfo.Type == FileConstants.FILETYPE_FILE && IsSupportedFile(fileInfo.Name)) return MyDnSpyFile.TryCreate(fileInfo.Name); return null; }
public DirectoryComparer(IFileManager FileManager = null) { if (FileManager == null) { FileManager = new Win32FileManager(); } this.FileManager = FileManager; }
public ZipFilesAction( IAsyncFilter asyncFilter, IFileManager fileManager, IClipboardInjectionService clipboardInjectionService) { this.asyncFilter = asyncFilter; this.fileManager = fileManager; this.clipboardInjectionService = clipboardInjectionService; }
InMemoryModuleManager(ITheDebugger theDebugger, IFileTabManager fileTabManager, Lazy<IMethodAnnotations> methodAnnotations, IAppWindow appWindow) { this.fileTabManager = fileTabManager; this.fileTreeView = fileTabManager.FileTreeView; this.fileManager = this.fileTreeView.FileManager; this.appWindow = appWindow; this.methodAnnotations = methodAnnotations; this.theDebugger = theDebugger; theDebugger.OnProcessStateChanged_First += TheDebugger_OnProcessStateChanged_First; }
public StartupManager( IFileManager fileManager, IObjectFactory objectFactory, IScreenController screenController) { FileManager = fileManager; ObjectFactory = objectFactory; ScreenController = screenController; }
public TreeNavigator(INode googleRoot, INode localRoot, IFileManager googleFileManager, IFileManager localFileManager, FileCacheManager fileCacheManager) { GoogleStack = new Stack<INode>(); LocalStack = new Stack<INode>(); GoogleStack.Push(googleRoot); LocalStack.Push(localRoot); GoogleManager = googleFileManager; LocalManager = localFileManager; FileCacheManager = fileCacheManager; }
public DeployRunner(IBuildRepository buildRepository, IProjectRepository projectRepository, IDeployTaskStatusManager statusManager, IDeployComponentRunner componentRunner, IDeployTaskFactory taskFactory, IFileManager fileManager, IZipper zipper) { _buildRepository = DIHelper.VerifyParameter(buildRepository); _projectRepository = DIHelper.VerifyParameter(projectRepository); _statusManager = DIHelper.VerifyParameter(statusManager); _componentRunner = DIHelper.VerifyParameter(componentRunner); _taskFactory = DIHelper.VerifyParameter(taskFactory); _fileManager = DIHelper.VerifyParameter(fileManager); _zipper = DIHelper.VerifyParameter(zipper); }
public MainPresenter(IMainForm view, IFileManager manager, IMessageService service) { _view = view; _manager = manager; _messageService = service; _view.SetSymbolCount(0); _view.ContentChanged += _view_ContentChanged; _view.FileOpenClick += _view_FileOpenClick; _view.FileSaveClick += _view_FileSaveClick; }
public SafeFolderForm(IFileManager fileManager, IAddressBookManager addressBookManager, IConfigurationManager configurationManager) { _fileManager = fileManager; _addressBookManager = addressBookManager; _configurationManager = configurationManager; InitializeComponent(); InitializeSafeFolder(); InitializeFileSystemWatcher(); ShowInTaskbar = false; }
public RepositoryTxt() { FileManager = new FileManagerTxt(); Log = new LogFourNetAdapter(); }
public Tester(IFileManager fileManager) { _fileManager = fileManager; }
public void Init() { _fileManager = new FileManager(); }
public UserController(UserManager <User> _userManager, IUserService _userService, IChatService _chatService, IMapper _mapper, IFileManager _fileManager, IContactService _contactService, IBlackListService _blackListService) { userManager = _userManager; userService = _userService; chatService = _chatService; mapper = _mapper; fileManager = _fileManager; contactService = _contactService; blackListService = _blackListService; }
public KaplanProcess(IWinServicesManager winservicemanager, IZipManager zipmanager, IFileManager filemanager) { _winServiceManager = winservicemanager; _zipManager = zipmanager; _fileManager = filemanager; }
public LocalNonImageContentReader(IFileManager fileManager, IStringDeserializer <EncounterNonImageContent> parser) { this.fileManager = fileManager; this.parser = parser; }
public void Setup() { _fileManager = new FileManager("temp", "DBs", 100); _logManager = new LogManager(_fileManager, RandomFilename); }
public JSONSettingsManager(IFileManager fileManager) =>
public UsersController(UserManager <ApplicationUser> userManager, IFileManager ifileManager, SignInManager <ApplicationUser> signInManager) { _userManager = userManager; _ifileManager = ifileManager; _signInManager = signInManager; }
public SignalStore(IFileManager fileManager) { _fileManager = fileManager ?? throw new ArgumentNullException(nameof(fileManager)); }
public FileManagerSaveFile(IFileManager filemanager) : base(filemanager) { }
public SortManager(IFileManager fileManager) { this._fileManager = fileManager; }
public FilesController(IFileManager fileManager) { _fileManager = fileManager; }
public CurrencyExchange(IFileManager _fileManager) { fileManager = _fileManager; }
public IPluginState CreatePluginState(IFileManager fileManager) { return(new GzState()); }
private void Create_Click(object sender, EventArgs e) { var ps = new Security.PortalSecurity(); txtGroupName.Text = ps.InputFilter(txtGroupName.Text, Security.PortalSecurity.FilterFlag.NoScripting); txtGroupName.Text = ps.InputFilter(txtGroupName.Text, Security.PortalSecurity.FilterFlag.NoMarkup); txtDescription.Text = ps.InputFilter(txtDescription.Text, Security.PortalSecurity.FilterFlag.NoScripting); txtDescription.Text = ps.InputFilter(txtDescription.Text, Security.PortalSecurity.FilterFlag.NoMarkup); if (RoleController.Instance.GetRoleByName(PortalId, txtGroupName.Text) != null) { lblInvalidGroupName.Visible = true; return; } var modRoles = new List <RoleInfo>(); var modUsers = new List <UserInfo>(); foreach (ModulePermissionInfo modulePermissionInfo in ModulePermissionController.GetModulePermissions(ModuleId, TabId)) { if (modulePermissionInfo.PermissionKey == "MODGROUP" && modulePermissionInfo.AllowAccess) { if (modulePermissionInfo.RoleID > int.Parse(Globals.glbRoleNothing)) { modRoles.Add(RoleController.Instance.GetRoleById(PortalId, modulePermissionInfo.RoleID)); } else if (modulePermissionInfo.UserID > Null.NullInteger) { modUsers.Add(UserController.GetUserById(PortalId, modulePermissionInfo.UserID)); } } } var roleInfo = new RoleInfo() { PortalID = PortalId, RoleName = txtGroupName.Text, Description = txtDescription.Text, SecurityMode = SecurityMode.SocialGroup, Status = RoleStatus.Approved, IsPublic = rdAccessTypePublic.Checked }; var userRoleStatus = RoleStatus.Pending; if (GroupModerationEnabled) { roleInfo.Status = RoleStatus.Pending; userRoleStatus = RoleStatus.Pending; } else { userRoleStatus = RoleStatus.Approved; } var objModulePermissions = new ModulePermissionCollection(CBO.FillCollection(DataProvider.Instance().GetModulePermissionsByModuleID(ModuleId, -1), typeof(ModulePermissionInfo))); if (ModulePermissionController.HasModulePermission(objModulePermissions, "MODGROUP")) { roleInfo.Status = RoleStatus.Approved; userRoleStatus = RoleStatus.Approved; } var roleGroupId = DefaultRoleGroupId; if (roleGroupId < Null.NullInteger) { roleGroupId = Null.NullInteger; } roleInfo.RoleGroupID = roleGroupId; roleInfo.RoleID = RoleController.Instance.AddRole(roleInfo); roleInfo = RoleController.Instance.GetRoleById(PortalId, roleInfo.RoleID); var groupUrl = Globals.NavigateURL(GroupViewTabId, "", new String[] { "groupid=" + roleInfo.RoleID.ToString() }); if (groupUrl.StartsWith("http://") || groupUrl.StartsWith("https://")) { const int startIndex = 8; // length of https:// groupUrl = groupUrl.Substring(groupUrl.IndexOf("/", startIndex, StringComparison.InvariantCultureIgnoreCase)); } roleInfo.Settings.Add("URL", groupUrl); roleInfo.Settings.Add("GroupCreatorName", UserInfo.DisplayName); roleInfo.Settings.Add("ReviewMembers", chkMemberApproved.Checked.ToString()); RoleController.Instance.UpdateRoleSettings(roleInfo, true); if (inpFile.PostedFile != null && inpFile.PostedFile.ContentLength > 0) { IFileManager _fileManager = FileManager.Instance; IFolderManager _folderManager = FolderManager.Instance; var rootFolderPath = PathUtils.Instance.FormatFolderPath(PortalSettings.HomeDirectory); IFolderInfo groupFolder = _folderManager.GetFolder(PortalSettings.PortalId, "Groups/" + roleInfo.RoleID); if (groupFolder == null) { groupFolder = _folderManager.AddFolder(PortalSettings.PortalId, "Groups/" + roleInfo.RoleID); } if (groupFolder != null) { var fileName = Path.GetFileName(inpFile.PostedFile.FileName); var fileInfo = _fileManager.AddFile(groupFolder, fileName, inpFile.PostedFile.InputStream, true); roleInfo.IconFile = "FileID=" + fileInfo.FileId; RoleController.Instance.UpdateRole(roleInfo); } } var notifications = new Notifications(); RoleController.Instance.AddUserRole(PortalId, UserId, roleInfo.RoleID, userRoleStatus, true, Null.NullDate, Null.NullDate); if (roleInfo.Status == RoleStatus.Pending) { //Send notification to Group Moderators to approve/reject group. notifications.AddGroupNotification(Constants.GroupPendingNotification, GroupViewTabId, ModuleId, roleInfo, UserInfo, modRoles, modUsers); } else { //Send notification to Group Moderators informing of new group. notifications.AddGroupNotification(Constants.GroupCreatedNotification, GroupViewTabId, ModuleId, roleInfo, UserInfo, modRoles, modUsers); //Add entry to journal. GroupUtilities.CreateJournalEntry(roleInfo, UserInfo); } Response.Redirect(Globals.NavigateURL(GroupViewTabId, "", new String[] { "groupid=" + roleInfo.RoleID.ToString() })); }
public PanelController(IRepository repository, IFileManager fileManager) { _repository = repository; _fileManager = fileManager; }
public ConfigController(IFileManager fileManager) { _fileManager = fileManager; }
public DuplicateRuleService(IOrganizationService service, IFileManager fileManager = null) { Service = service ?? throw new ArgumentNullException(nameof(service)); FileManager = fileManager ?? new FileManager(); }
public static void saveSettings() { IFileManager fm = ServiceLocator.getIFileManager(); fm.writeToFile(settingsFilePath, data.ToString()); }
public FileController(IFileManager fileManager) { Require.NotNull(fileManager, nameof(fileManager)); _fileManager = fileManager; }
public AnalysisEngine(ILogger logger, IFileManager fileManager) { _logger = logger; _fileManager = fileManager; }
public ApplicationSettingsManager(ILogger logger, FirestoreOptions options, IFirestoreConnectionManager connectionManager, IFileManager fileManager, ISecretsConnectionManager secretsManager) { _logger = logger; _options = options; _connectionManager = connectionManager; _fileManager = fileManager; _secretsManager = secretsManager; }
public IPluginState CreatePluginState(IFileManager pluginManager) { return(new NcgrState()); }
public PostManagerController(IRepository repo, IFileManager fileManager, UserManager <IdentityUser> userManager) { _repo = repo; _fileManager = fileManager; _userManager = userManager; }
public CreateCostCommandHandler(IApplicationDBContext context, IFileManager fileManager) { _context = context; _fileManager = fileManager; }
public XmlConfigRuleContext(IXPathNavigable ruleConfig, IFileManager fm) { _FileManager = fm; _RuleConfig = ruleConfig; }
public ComponentController(IFileManager repository) { this.repository = repository; }
public GetFilePathHandler(IFileManager fileManager) { _fileManager = fileManager; }
public IPluginState CreatePluginState(IFileManager pluginManager) { return(new Ps2DiscState()); }