Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
}