aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms')
-rw-r--r--ShiftOS.WinForms/DesktopWidgets/CommandRunner.Designer.cs37
-rw-r--r--ShiftOS.WinForms/DesktopWidgets/CommandRunner.cs37
-rw-r--r--ShiftOS.WinForms/ShiftOS.WinForms.csproj6
3 files changed, 80 insertions, 0 deletions
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
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Component Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ 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 @@
<Compile Include="DesktopWidgets\Clock.Designer.cs">
<DependentUpon>Clock.cs</DependentUpon>
</Compile>
+ <Compile Include="DesktopWidgets\CommandRunner.cs">
+ <SubType>UserControl</SubType>
+ </Compile>
+ <Compile Include="DesktopWidgets\CommandRunner.Designer.cs">
+ <DependentUpon>CommandRunner.cs</DependentUpon>
+ </Compile>
<Compile Include="DesktopWidgets\UpgradePercentage.cs">
<SubType>UserControl</SubType>
</Compile>