...
To open a file, it is required to set the right properties of the service and then make a call to the DetermineFile method:
Code Block |
---|
var dependencyResolver = this.GetDependencyResolver(); var openFileService = GetService<IOpenFileService>dependencyResolver.Resolve<IOpenFileService>(); openFileService.Filter = "All files|*.*"; if (openFileService.DetermineFile()) { // User selected a file } |