aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/WindowBorder.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-04 11:14:39 -0500
committerMichael <[email protected]>2017-02-04 11:14:39 -0500
commit28a087d2d4961fd80d827df968de0f6f63da07eb (patch)
treea58ef9c8fd9d462c77226d05222bcf81859e9652 /ShiftOS.WinForms/WindowBorder.cs
parent9aa2c1f03bc09435ba46c760383113ba4f1cabd0 (diff)
downloadshiftos_thereturn-28a087d2d4961fd80d827df968de0f6f63da07eb.tar.gz
shiftos_thereturn-28a087d2d4961fd80d827df968de0f6f63da07eb.tar.bz2
shiftos_thereturn-28a087d2d4961fd80d827df968de0f6f63da07eb.zip
Add name changer backend
You can use the DefaultTitleAttribute on an IShiftOSWindow to specify a default title for the window and name changer entry.
Diffstat (limited to 'ShiftOS.WinForms/WindowBorder.cs')
-rw-r--r--ShiftOS.WinForms/WindowBorder.cs20
1 files changed, 2 insertions, 18 deletions
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;
/// <summary>
/// Window border.
@@ -211,7 +212,7 @@ namespace ShiftOS.WinForms
/// </summary>
public void Setup()
{
- this.lbtitletext.Text = Localization.Parse(this._parentWindow.Text);
+ this.lbtitletext.Text = NameChangerBackend.GetName(ParentWindow);
if (SaveSystem.CurrentSave != null)
{
@@ -232,23 +233,6 @@ namespace ShiftOS.WinForms
}
/// <summary>
- /// Gets or sets the text.
- /// </summary>
- /// <value>The text.</value>
- public override string Text
- {
- get
- {
- return lbtitletext?.Text;
- }
-
- set
- {
- lbtitletext.Text = value;
- }
- }
-
- /// <summary>
/// Setups the skin.
/// </summary>
/// <returns>The skin.</returns>