BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
BrawlLib.BrawlManagerLib.NameDialog Class Reference
Inheritance diagram for BrawlLib.BrawlManagerLib.NameDialog:

Public Member Functions

 NameDialog ()
 
DialogResult ShowDialog (IWin32Window owner, string text)
 

Properties

string EntryText [get, set]
 
string LabelText [get, set]
 

Constructor & Destructor Documentation

◆ NameDialog()

BrawlLib.BrawlManagerLib.NameDialog.NameDialog ( )
inline
38 {
39 InitializeComponent();
40 }

Member Function Documentation

◆ ShowDialog()

DialogResult BrawlLib.BrawlManagerLib.NameDialog.ShowDialog ( IWin32Window  owner,
string  text 
)
inline
43 {
44 Text = text;
45 return ShowDialog(owner);
46 }
DialogResult ShowDialog(IWin32Window owner, string text)
Definition: NameDialog.cs:42

Property Documentation

◆ EntryText

string BrawlLib.BrawlManagerLib.NameDialog.EntryText
getset
10 {
11 get => txtName.Text;
12 set => txtName.Text = value;
13 }

◆ LabelText

string BrawlLib.BrawlManagerLib.NameDialog.LabelText
getset
16 {
17 get => label1.Text;
18 set
19 {
20 label1.Text = value;
21 int h = 125;
22 foreach (char c in value)
23 {
24 if (c == '\n')
25 {
26 h += 13;
27 }
28 }
29
30 if (h > Height)
31 {
32 Height = h;
33 }
34 }
35 }

The documentation for this class was generated from the following file: