Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
DialogEventArgs.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 using System.Windows.Forms;
5 
6 namespace SiliconStudio.LauncherApp
7 {
8  public class DialogEventArgs : EventArgs
9  {
10  private readonly string text;
11  private readonly string caption;
12  private readonly MessageBoxButtons buttons;
13  private readonly MessageBoxIcon icon;
14  private readonly MessageBoxDefaultButton defaultButton;
15  private readonly MessageBoxOptions options;
16 
17  //public DialogEventArgs(string text, string caption)
18  // : this(text, caption, MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1, 0)
19  //{
20  //}
21 
22  public DialogEventArgs(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options)
23  {
24  this.text = text;
25  this.caption = caption;
26  this.buttons = buttons;
27  this.icon = icon;
28  this.defaultButton = defaultButton;
29  this.options = options;
30  }
31 
32  public string Text
33  {
34  get
35  {
36  return text;
37  }
38  }
39 
40  public string Caption
41  {
42  get
43  {
44  return caption;
45  }
46  }
47 
48  public MessageBoxButtons Buttons
49  {
50  get
51  {
52  return buttons;
53  }
54  }
55 
56  public MessageBoxIcon Icon
57  {
58  get
59  {
60  return icon;
61  }
62  }
63 
64  public MessageBoxDefaultButton DefaultButton
65  {
66  get
67  {
68  return defaultButton;
69  }
70  }
71 
72  public MessageBoxOptions Options
73  {
74  get
75  {
76  return options;
77  }
78  }
79 
80  public DialogResult Result { get; set; }
81  }
82 }
DialogResult
An enum representing the result of a dialog invocation.
Definition: DialogResult.cs:9
DialogEventArgs(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton, MessageBoxOptions options)