using System.Windows.Forms; namespace PaintDotNet.SystemLayer { public sealed class ClassicFileOpenDialog : ClassicFileDialog, IFileOpenDialog { private OpenFileDialog OpenFileDialog { get { return this.FileDialog as OpenFileDialog; } } public bool CheckFileExists { get { return this.OpenFileDialog.CheckFileExists; } set { this.OpenFileDialog.CheckFileExists = value; } } public bool Multiselect { get { return this.OpenFileDialog.Multiselect; } set { this.OpenFileDialog.Multiselect = value; } } public string[] FileNames { get { return this.OpenFileDialog.FileNames; } } public ClassicFileOpenDialog() : base(new System.Windows.Forms.OpenFileDialog()) { } } }