internal void SetOption(Natives.FOS option, bool value)
 {
     if (value)
     {
         _options |= option;
     }
     else
     {
         _options &= ~option;
     }
 }
 /// <summary>
 /// Resets all properties to their default values.
 /// </summary>
 public override void Reset()
 {
     if (DownlevelDialog != null)
     {
         DownlevelDialog.Reset();
     }
     else
     {
         _fileNames    = null;
         _filter       = null;
         _filterIndex  = 1;
         _addExtension = true;
         _defaultExt   = null;
         _options      = 0;
         _showHelp     = false;
         _title        = null;
         _supportMultiDottedExtensions = false;
         CheckPathExists = true;
     }
 }
 internal bool GetOption(Natives.FOS option)
 {
     return((_options & option) != 0);
 }