mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
BST: Add "CommandRunner" Widget
This commit is contained in:
parent
40fc14a237
commit
e65a1b5e93
3 changed files with 80 additions and 0 deletions
37
ShiftOS.WinForms/DesktopWidgets/CommandRunner.Designer.cs
generated
Normal file
37
ShiftOS.WinForms/DesktopWidgets/CommandRunner.Designer.cs
generated
Normal 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
|
||||
}
|
||||
}
|
37
ShiftOS.WinForms/DesktopWidgets/CommandRunner.cs
Normal file
37
ShiftOS.WinForms/DesktopWidgets/CommandRunner.cs
Normal 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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue