diff --git a/ShiftOS.WinForms/DesktopWidgets/CommandRunner.cs b/ShiftOS.WinForms/DesktopWidgets/CommandRunner.cs deleted file mode 100644 index 29f20ed..0000000 --- a/ShiftOS.WinForms/DesktopWidgets/CommandRunner.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Data; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; -using ShiftOS.Engine; -using ShiftOS.WinForms.Tools; - -namespace ShiftOS.WinForms.DesktopWidgets -{ - [DesktopWidget("Terminal Widget", "Run commands in a miniature Terminal.")] - public partial class CommandRunner : UserControl, IDesktopWidget - { - public CommandRunner() - { - InitializeComponent(); - } - - public void OnSkinLoad() - { - ControlManager.SetupControls(this); - } - - public void OnUpgrade() - { - - } - - public void Setup() - { - } - } -} diff --git a/ShiftOS.WinForms/DesktopWidgets/CommandRunner.Designer.cs b/ShiftOS.WinForms/DesktopWidgets/TerminalWidget.Designer.cs similarity index 75% rename from ShiftOS.WinForms/DesktopWidgets/CommandRunner.Designer.cs rename to ShiftOS.WinForms/DesktopWidgets/TerminalWidget.Designer.cs index 6569247..e8e24c6 100644 --- a/ShiftOS.WinForms/DesktopWidgets/CommandRunner.Designer.cs +++ b/ShiftOS.WinForms/DesktopWidgets/TerminalWidget.Designer.cs @@ -1,6 +1,6 @@ namespace ShiftOS.WinForms.DesktopWidgets { - partial class CommandRunner + partial class TerminalWidget { /// /// Required designer variable. @@ -28,8 +28,16 @@ /// private void InitializeComponent() { - components = new System.ComponentModel.Container(); + this.SuspendLayout(); + // + // TerminalWidget + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Name = "TerminalWidget"; + this.Size = new System.Drawing.Size(185, 133); + this.ResumeLayout(false); + } #endregion diff --git a/ShiftOS.WinForms/DesktopWidgets/TerminalWidget.cs b/ShiftOS.WinForms/DesktopWidgets/TerminalWidget.cs new file mode 100644 index 0000000..1dcd08c --- /dev/null +++ b/ShiftOS.WinForms/DesktopWidgets/TerminalWidget.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace ShiftOS.WinForms.DesktopWidgets +{ + [DesktopWidget("Terminal Widget", "Run commands inside a miniature Terminal.")] + public partial class TerminalWidget : Applications.Terminal, IDesktopWidget + { + public TerminalWidget() : base() + { + this.Size = new Size(320, 200); + } + + public void Setup() + { + OnLoad(); + } + } +} diff --git a/ShiftOS.WinForms/DesktopWidgets/TerminalWidget.resx b/ShiftOS.WinForms/DesktopWidgets/TerminalWidget.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/ShiftOS.WinForms/DesktopWidgets/TerminalWidget.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ShiftOS.WinForms/ShiftOS.WinForms.csproj b/ShiftOS.WinForms/ShiftOS.WinForms.csproj index d426139..3f7c463 100644 --- a/ShiftOS.WinForms/ShiftOS.WinForms.csproj +++ b/ShiftOS.WinForms/ShiftOS.WinForms.csproj @@ -270,11 +270,11 @@ Clock.cs - + UserControl - - CommandRunner.cs + + TerminalWidget.cs UserControl @@ -434,6 +434,9 @@ Clock.cs + + TerminalWidget.cs + UpgradePercentage.cs