aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/Dialog.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-06 20:15:22 -0500
committerMichael <[email protected]>2017-02-06 20:15:22 -0500
commit82de84638ab857512181d5ed4ad0b5010bca1213 (patch)
treed8fa96a1e185200c15f136b3dbb903a85b89221f /ShiftOS.WinForms/Applications/Dialog.cs
parentaa9234c68130018f4ee3dbb40f54758536e9d101 (diff)
downloadshiftos_thereturn-82de84638ab857512181d5ed4ad0b5010bca1213.tar.gz
shiftos_thereturn-82de84638ab857512181d5ed4ad0b5010bca1213.tar.bz2
shiftos_thereturn-82de84638ab857512181d5ed4ad0b5010bca1213.zip
Icon backend :D
Diffstat (limited to 'ShiftOS.WinForms/Applications/Dialog.cs')
-rw-r--r--ShiftOS.WinForms/Applications/Dialog.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/ShiftOS.WinForms/Applications/Dialog.cs b/ShiftOS.WinForms/Applications/Dialog.cs
index 8b03be1..8137816 100644
--- a/ShiftOS.WinForms/Applications/Dialog.cs
+++ b/ShiftOS.WinForms/Applications/Dialog.cs
@@ -43,12 +43,16 @@ namespace ShiftOS.WinForms.Applications
InitializeComponent();
}
+ public string Title { get; private set; }
+
public void OnLoad()
{
+ AppearanceManager.SetWindowTitle(this, this.Title);
}
public void OnSkinLoad()
{
+ AppearanceManager.SetWindowTitle(this, this.Title);
}
public bool OnUnload()
@@ -63,7 +67,7 @@ namespace ShiftOS.WinForms.Applications
internal void OpenInternal(string title, string msg)
{
AppearanceManager.SetupWindow(this);
- this.Parent.Text = title;
+ Title = title;
lbmessage.Text = msg;
txtinput.Hide();
flyesno.Hide();
@@ -83,7 +87,7 @@ namespace ShiftOS.WinForms.Applications
public void PromptTextInternal(string title, string message, Action<string> callback)
{
AppearanceManager.SetupWindow(this);
- this.Parent.Text = title;
+ Title = title;
lbmessage.Text = message;
txtinput.Show();
flyesno.Hide();
@@ -119,7 +123,7 @@ namespace ShiftOS.WinForms.Applications
public void PromptYesNoInternal(string title, string message, Action<bool> callback)
{
AppearanceManager.SetupWindow(this);
- this.Parent.Text = title;
+ Title = title;
lbmessage.Text = message;
txtinput.Hide();
flyesno.Show();