Skip to content

Commit

Permalink
SRID deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
miloush committed Apr 17, 2023
1 parent cae27d4 commit 78b7a85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public Stream OpenFile()
// tell the user we don't have any files to open.
if (string.IsNullOrEmpty(filename))
{
throw new InvalidOperationException(SR.Get(SRID.FileNameMustNotBeNull));
throw new InvalidOperationException(SR.FileNameMustNotBeNull);
}

return new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read);
Expand Down Expand Up @@ -112,7 +112,7 @@ public Stream[] OpenFiles()

if (string.IsNullOrEmpty(filename))
{
throw new InvalidOperationException(SR.Get(SRID.FileNameMustNotBeNull));
throw new InvalidOperationException(SR.FileNameMustNotBeNull);
}

// Open the file and add it to the list of streams.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public Stream OpenFile()
// tell the user we don't have any files to open.
if (string.IsNullOrEmpty(filename))
{
throw new InvalidOperationException(SR.Get(SRID.FileNameMustNotBeNull));
throw new InvalidOperationException(SR.FileNameMustNotBeNull);
}

// Create a new FileStream from the file and return it.
Expand Down Expand Up @@ -284,7 +284,7 @@ private void Initialize()
/// </summary>
private bool PromptFileCreate(string fileName)
{
return MessageBoxWithFocusRestore(SR.Get(SRID.FileDialogCreatePrompt, fileName),
return MessageBoxWithFocusRestore(SR.Format(SR.FileDialogCreatePrompt, fileName),
MessageBoxButton.YesNo, MessageBoxImage.Warning);
}

Expand All @@ -296,7 +296,7 @@ private bool PromptFileCreate(string fileName)
/// </summary>
private bool PromptFileOverwrite(string fileName)
{
return MessageBoxWithFocusRestore(SR.Get(SRID.FileDialogOverwritePrompt, fileName),
return MessageBoxWithFocusRestore(SR.Format(SR.FileDialogOverwritePrompt, fileName),
MessageBoxButton.YesNo, MessageBoxImage.Warning);
}

Expand Down

0 comments on commit 78b7a85

Please sign in to comment.