Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2012-04-30 13:26:26 +0400
committerMike Krüger <mkrueger@xamarin.com>2012-04-30 13:26:26 +0400
commit8cb8142c2b3c7b15863afe7e03f22815c66a9e2d (patch)
tree1d64ed41615e3a849c755d06aea2ca4fdf803f55 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
parente231cbe672eecc887799560b847d2b29a9e2e637 (diff)
Fixed 'Bug 2856 - Multiple buttons in dialog have same mnemonic '.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs16
1 files changed, 13 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
index 66d8222ea1..f3fee13cbf 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/FileCommands.cs
@@ -279,7 +279,12 @@ namespace MonoDevelop.Ide.Commands
try {
string title = GettextCatalog.GetString ("Clear recent files");
string question = GettextCatalog.GetString ("Are you sure you want to clear recent files list?");
- if (MessageService.Confirm (title, question, AlertButton.Clear)) {
+ if (MessageService.GenericAlert (
+ MonoDevelop.Ide.Gui.Stock.Question,
+ title,
+ question,
+ AlertButton.No,
+ AlertButton.Yes) == AlertButton.Yes) {
DesktopService.RecentFiles.ClearFiles ();
}
} catch (Exception ex) {
@@ -347,12 +352,17 @@ namespace MonoDevelop.Ide.Commands
// MonoDevelop.Ide.Commands.FileCommands.ClearRecentProjects
internal class ClearRecentProjectsHandler : CommandHandler
{
- protected override void Run()
+ protected override void Run ()
{
try {
string title = GettextCatalog.GetString ("Clear recent projects");
string question = GettextCatalog.GetString ("Are you sure you want to clear recent projects list?");
- if (MessageService.Confirm (title, question, AlertButton.Clear)) {
+ if (MessageService.GenericAlert (
+ MonoDevelop.Ide.Gui.Stock.Question,
+ title,
+ question,
+ AlertButton.No,
+ AlertButton.Yes) == AlertButton.Yes) {
DesktopService.RecentFiles.ClearProjects ();
}
} catch (Exception ex) {