Fix MessageBox for null Caption

This commit is contained in:
Mahdi Hosseini authored and GitHub committed 2019-02-01 19:09:45 +03:30
1 parent ab6e2efe21
commit 67219bd62e
1 file changed
+2 -2
+2 -2
View File
@@ -298,7 +298,7 @@ namespace HandyControl.Controls
Owner = ownerWindow, Owner = ownerWindow,
WindowStartupLocation = ownerIsNull ? WindowStartupLocation.CenterScreen : WindowStartupLocation.CenterOwner, WindowStartupLocation = ownerIsNull ? WindowStartupLocation.CenterScreen : WindowStartupLocation.CenterOwner,
ShowTitle = true, ShowTitle = true,
Title = caption, Title = caption ?? System.Reflection.Assembly.GetExecutingAssembly().GetName().Name,
Topmost = ownerIsNull, Topmost = ownerIsNull,
_messageBoxResult = defaultResult _messageBoxResult = defaultResult
}; };
@@ -388,4 +388,4 @@ namespace HandyControl.Controls
|| value == MessageBoxResult.Yes; || value == MessageBoxResult.Yes;
} }
} }
} }