From 28a087d2d4961fd80d827df968de0f6f63da07eb Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 4 Feb 2017 11:14:39 -0500 Subject: Add name changer backend You can use the DefaultTitleAttribute on an IShiftOSWindow to specify a default title for the window and name changer entry. --- ShiftOS.WinForms/WindowBorder.cs | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'ShiftOS.WinForms/WindowBorder.cs') diff --git a/ShiftOS.WinForms/WindowBorder.cs b/ShiftOS.WinForms/WindowBorder.cs index be59c70..bb9b478 100644 --- a/ShiftOS.WinForms/WindowBorder.cs +++ b/ShiftOS.WinForms/WindowBorder.cs @@ -36,6 +36,7 @@ using static ShiftOS.Engine.SkinEngine; using System.Runtime.InteropServices; using ShiftOS.Engine; using ShiftOS.WinForms.Tools; +using ShiftOS.WinForms.Applications; /// /// Window border. @@ -211,7 +212,7 @@ namespace ShiftOS.WinForms /// public void Setup() { - this.lbtitletext.Text = Localization.Parse(this._parentWindow.Text); + this.lbtitletext.Text = NameChangerBackend.GetName(ParentWindow); if (SaveSystem.CurrentSave != null) { @@ -231,23 +232,6 @@ namespace ShiftOS.WinForms } } - /// - /// Gets or sets the text. - /// - /// The text. - public override string Text - { - get - { - return lbtitletext?.Text; - } - - set - { - lbtitletext.Text = value; - } - } - /// /// Setups the skin. /// -- cgit v1.2.3