From 5fd343195be5632ba341031953d4a4e6d9317253 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 18 Jun 2017 20:31:19 -0400 Subject: Localize a lot of the window titles --- ShiftOS.WinForms/Applications/Dialog.cs | 15 ++++++++++++--- 1 file changed, 12 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 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() -- cgit v1.2.3