diff options
| author | Michael <[email protected]> | 2017-06-18 20:31:19 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-06-18 20:31:19 -0400 |
| commit | 5fd343195be5632ba341031953d4a4e6d9317253 (patch) | |
| tree | 199878179b87868c4feff2bc7fe69f6435b3007b /ShiftOS.WinForms/Applications/Dialog.cs | |
| parent | 12acff8742f4c64976bfabee1b70dc515190fc7c (diff) | |
| download | shiftos_thereturn-5fd343195be5632ba341031953d4a4e6d9317253.tar.gz shiftos_thereturn-5fd343195be5632ba341031953d4a4e6d9317253.tar.bz2 shiftos_thereturn-5fd343195be5632ba341031953d4a4e6d9317253.zip | |
Localize a lot of the window titles
Diffstat (limited to 'ShiftOS.WinForms/Applications/Dialog.cs')
| -rw-r--r-- | ShiftOS.WinForms/Applications/Dialog.cs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/ShiftOS.WinForms/Applications/Dialog.cs b/ShiftOS.WinForms/Applications/Dialog.cs index f9d0b86..5844e1c 100644 --- a/ShiftOS.WinForms/Applications/Dialog.cs +++ b/ShiftOS.WinForms/Applications/Dialog.cs @@ -35,10 +35,11 @@ using System.Threading.Tasks; using System.Windows.Forms; using Microsoft.VisualBasic.Devices; using ShiftOS.Engine; +using ShiftOS.WinForms.Tools; namespace ShiftOS.WinForms.Applications { - [DefaultTitle("Information")] + [DefaultTitle("{TITLE_INFOBOX}")] [DefaultIcon("iconInfoBox")] public partial class Dialog : UserControl, IShiftOSWindow, IInfobox { @@ -51,13 +52,21 @@ namespace ShiftOS.WinForms.Applications public void OnLoad() { - AppearanceManager.SetWindowTitle(this, this.Title); + if(!string.IsNullOrWhiteSpace(Title)) + AppearanceManager.SetWindowTitle(this, this.Title); ShiftOS.Engine.AudioManager.PlayStream(Properties.Resources.infobox); } public void OnSkinLoad() { - AppearanceManager.SetWindowTitle(this, this.Title); + if(!string.IsNullOrWhiteSpace(Title)) + AppearanceManager.SetWindowTitle(this, this.Title); + + int top = btnok.Top; + btnok.CenterParent(); + btnyes.Parent.CenterParent(); + btnok.Top = top; + btnyes.Parent.Top = top; } public bool OnUnload() |
