diff options
Diffstat (limited to 'src/GraphicObjects/MessageBox.cs')
| -rw-r--r-- | src/GraphicObjects/MessageBox.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/GraphicObjects/MessageBox.cs b/src/GraphicObjects/MessageBox.cs index d8ce1dae..0e308bf9 100644 --- a/src/GraphicObjects/MessageBox.cs +++ b/src/GraphicObjects/MessageBox.cs @@ -32,13 +32,17 @@ namespace Crow { public class MessageBox : Window { + #region CTOR + public MessageBox () : base(){} + public MessageBox (Interface iface) : base(iface){} + #endregion + public enum Type { Information, YesNo, Alert, Error } - public MessageBox (): base(){} protected override void loadTemplate (GraphicObject template) { @@ -133,8 +137,7 @@ namespace Crow } public static MessageBox Show (Type msgBoxType, string message, string okMsg = "", string cancelMsg = ""){ lock (Interface.CurrentInterface.UpdateMutex) { - MessageBox mb = new MessageBox (); - mb.Initialize (); + MessageBox mb = new MessageBox (Interface.CurrentInterface); mb.CurrentInterface.AddWidget (mb); mb.MsgType = msgBoxType; mb.Message = message; |