From e65a1b5e93e8f533d44542354b150ac660cf7239 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 22 Apr 2017 18:57:05 -0400 Subject: [PATCH] BST: Add "CommandRunner" Widget --- .../DesktopWidgets/CommandRunner.Designer.cs | 37 +++++++++++++++++++ .../DesktopWidgets/CommandRunner.cs | 37 +++++++++++++++++++ ShiftOS.WinForms/ShiftOS.WinForms.csproj | 6 +++ 3 files changed, 80 insertions(+) create mode 100644 ShiftOS.WinForms/DesktopWidgets/CommandRunner.Designer.cs create mode 100644 ShiftOS.WinForms/DesktopWidgets/CommandRunner.cs diff --git a/ShiftOS.WinForms/DesktopWidgets/CommandRunner.Designer.cs b/ShiftOS.WinForms/DesktopWidgets/CommandRunner.Designer.cs new file mode 100644 index 0000000..6569247 --- /dev/null +++ b/ShiftOS.WinForms/DesktopWidgets/CommandRunner.Designer.cs @@ -0,0 +1,37 @@ +namespace ShiftOS.WinForms.DesktopWidgets +{ + partial class CommandRunner + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + } + + #endregion + } +} diff --git a/ShiftOS.WinForms/DesktopWidgets/CommandRunner.cs b/ShiftOS.WinForms/DesktopWidgets/CommandRunner.cs new file mode 100644 index 0000000..29f20ed --- /dev/null +++ b/ShiftOS.WinForms/DesktopWidgets/CommandRunner.cs @@ -0,0 +1,37 @@ +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/ShiftOS.WinForms.csproj b/ShiftOS.WinForms/ShiftOS.WinForms.csproj index f018390..d426139 100644 --- a/ShiftOS.WinForms/ShiftOS.WinForms.csproj +++ b/ShiftOS.WinForms/ShiftOS.WinForms.csproj @@ -270,6 +270,12 @@ Clock.cs + + UserControl + + + CommandRunner.cs + UserControl