1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace SmartCoalApplication.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())
- {
- }
- }
- }
|