From 82de84638ab857512181d5ed4ad0b5010bca1213 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 6 Feb 2017 20:15:22 -0500 Subject: Icon backend :D --- ShiftOS.WinForms/Applications/Dialog.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'ShiftOS.WinForms/Applications/Dialog.cs') 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 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 callback) { AppearanceManager.SetupWindow(this); - this.Parent.Text = title; + Title = title; lbmessage.Text = message; txtinput.Hide(); flyesno.Show(); -- cgit v1.2.3