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
+1 -1
+1 -1
View File
@@ -298,7 +298,7 @@ namespace HandyControl.Controls
Owner = ownerWindow,
WindowStartupLocation = ownerIsNull ? WindowStartupLocation.CenterScreen : WindowStartupLocation.CenterOwner,
ShowTitle = true,
Title = caption,
Title = caption ?? System.Reflection.Assembly.GetExecutingAssembly().GetName().Name,
Topmost = ownerIsNull,
_messageBoxResult = defaultResult
};