protected bool GetOptions(NativeConstants.FOS flags) { NativeConstants.FOS options; this.fileDialog.GetOptions(out options); NativeConstants.FOS masked = options & flags; return(masked == flags); }
protected void DisableOption(NativeConstants.FOS flags) { NativeConstants.FOS oldOptions; this.fileDialog.GetOptions(out oldOptions); NativeConstants.FOS newOptions = oldOptions & ~flags; this.fileDialog.SetOptions(newOptions); }
protected void SetOptions(NativeConstants.FOS flags, bool enable) { if (enable) { EnableOption(flags); } else { DisableOption(flags); } }
protected void EnableOption(NativeConstants.FOS flags) { this.FileDialog.GetOptions(out NativeConstants.FOS oldOptions); NativeConstants.FOS newOptions = oldOptions | flags; this.FileDialog.SetOptions(newOptions); }