BST: Add "CommandRunner" Widget

This commit is contained in:
Michael 2017-04-22 18:57:05 -04:00
parent 40fc14a237
commit e65a1b5e93
3 changed files with 80 additions and 0 deletions

View file

@ -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
}
}

View file

@ -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()
{
}
}
}

View file

@ -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>