7 writes to _fileNameFlags
System.Windows.Forms (7)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (5)
393_fileNameFlags = _fileNameFlags & ~OFN_READONLY | lpOFN->Flags & OFN_READONLY; 435_fileNameFlags = saveOptions; 707_fileNameFlags = OFN_HIDEREADONLY | OFN_PATHMUSTEXIST; 795_fileNameFlags |= option; 799_fileNameFlags &= ~option;
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.Vista.cs (2)
167_fileNameFlags = saveOptions; 176_fileNameFlags &= ~OFN_READONLY;
12 references to _fileNameFlags
System.Windows.Forms (12)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (6)
294(int)(_fileNameFlags & (OFN_READONLY | OFN_HIDEREADONLY | OFN_NOCHANGEDIR | OFN_SHOWHELP | OFN_NOVALIDATE 387OPEN_FILENAME_FLAGS saveOptions = _fileNameFlags; 393_fileNameFlags = _fileNameFlags & ~OFN_READONLY | lpOFN->Flags & OFN_READONLY; 398_fileNames = _fileNameFlags.HasFlag(OFN_ALLOWMULTISELECT) 486private protected bool GetOption(OPEN_FILENAME_FLAGS option) => (_fileNameFlags & option) != 0; 689if (_fileNameFlags.HasFlag(OFN_FILEMUSTEXIST) && !FileExists(fileName))
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.Vista.cs (4)
106System.Diagnostics.Debug.Assert((UnexpectedOptions & _fileNameFlags) == 0, "Unexpected FileDialog options"); 109FILEOPENDIALOGOPTIONS result = (FILEOPENDIALOGOPTIONS)_fileNameFlags & BlittableOptions; 127OPEN_FILENAME_FLAGS saveOptions = _fileNameFlags; 172if (_fileNameFlags.HasFlag(OFN_HIDEREADONLY))
System\Windows\Forms\Dialogs\CommonDialogs\SaveFileDialog.cs (2)
114if (_fileNameFlags.HasFlag(OFN_OVERWRITEPROMPT) 122if (_fileNameFlags.HasFlag(OFN_CREATEPROMPT) && !FileExists(fileName) && !PromptFileCreate(fileName))