Browse Source

Close all now works + question icon instead warning in message boxes.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3268 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Ivan Shumilin 18 years ago
parent
commit
a7bdcdbf1c
  1. 6
      src/AddIns/DisplayBindings/WpfDesign/XamlDesigner/Shell.cs

6
src/AddIns/DisplayBindings/WpfDesign/XamlDesigner/Shell.cs

@ -163,7 +163,7 @@ namespace ICSharpCode.XamlDesigner
{ {
if (doc.IsDirty) { if (doc.IsDirty) {
var result = MessageBox.Show("Save \"" + doc.Name + "\" ?", Shell.ApplicationTitle, var result = MessageBox.Show("Save \"" + doc.Name + "\" ?", Shell.ApplicationTitle,
MessageBoxButton.YesNoCancel, MessageBoxImage.Warning); MessageBoxButton.YesNoCancel, MessageBoxImage.Question);
if (result == MessageBoxResult.Yes) { if (result == MessageBoxResult.Yes) {
if (!Save(doc)) return false; if (!Save(doc)) return false;
@ -178,7 +178,7 @@ namespace ICSharpCode.XamlDesigner
public bool CloseAll() public bool CloseAll()
{ {
foreach (var doc in Documents) { foreach (var doc in Documents.ToArray()) {
if (!Close(doc)) return false; if (!Close(doc)) return false;
} }
return true; return true;
@ -188,7 +188,7 @@ namespace ICSharpCode.XamlDesigner
{ {
if (IsSomethingDirty) { if (IsSomethingDirty) {
var result = MessageBox.Show("Save All?", Shell.ApplicationTitle, var result = MessageBox.Show("Save All?", Shell.ApplicationTitle,
MessageBoxButton.YesNoCancel, MessageBoxImage.Warning); MessageBoxButton.YesNoCancel, MessageBoxImage.Question);
if (result == MessageBoxResult.Yes) { if (result == MessageBoxResult.Yes) {
if (!SaveAll()) return false; if (!SaveAll()) return false;

Loading…
Cancel
Save