Пример #1
0
 protected bool GetOptions(NativeConstants.FOS flags)
 {
     NativeConstants.FOS options;
     this.fileDialog.GetOptions(out options);
     NativeConstants.FOS masked = options & flags;
     return(masked == flags);
 }
Пример #2
0
 protected void DisableOption(NativeConstants.FOS flags)
 {
     NativeConstants.FOS oldOptions;
     this.fileDialog.GetOptions(out oldOptions);
     NativeConstants.FOS newOptions = oldOptions & ~flags;
     this.fileDialog.SetOptions(newOptions);
 }
Пример #3
0
 protected void SetOptions(NativeConstants.FOS flags, bool enable)
 {
     if (enable)
     {
         EnableOption(flags);
     }
     else
     {
         DisableOption(flags);
     }
 }
Пример #4
0
 protected void EnableOption(NativeConstants.FOS flags)
 {
     this.FileDialog.GetOptions(out NativeConstants.FOS oldOptions);
     NativeConstants.FOS newOptions = oldOptions | flags;
     this.FileDialog.SetOptions(newOptions);
 }