diff options
| author | FloppyDiskDrive <[email protected]> | 2017-11-21 16:12:15 -0600 |
|---|---|---|
| committer | FloppyDiskDrive <[email protected]> | 2017-11-21 16:12:15 -0600 |
| commit | 2950e4546a0aad1036a7e655c41d170e6dd7ef12 (patch) | |
| tree | 70b4ecb1b0b7e364749217ca25195b396d0d2f1a /ShiftOS.Engine/UI | |
| parent | 4534ff6252d2cd442d2180b024a94db1f4379f41 (diff) | |
| download | shiftos-rewind-2950e4546a0aad1036a7e655c41d170e6dd7ef12.tar.gz shiftos-rewind-2950e4546a0aad1036a7e655c41d170e6dd7ef12.tar.bz2 shiftos-rewind-2950e4546a0aad1036a7e655c41d170e6dd7ef12.zip | |
updated the TerminalBackend.cs file lel
Diffstat (limited to 'ShiftOS.Engine/UI')
| -rw-r--r-- | ShiftOS.Engine/UI/ShiftButton.Designer.cs | 36 | ||||
| -rw-r--r-- | ShiftOS.Engine/UI/ShiftButton.cs | 55 |
2 files changed, 0 insertions, 91 deletions
diff --git a/ShiftOS.Engine/UI/ShiftButton.Designer.cs b/ShiftOS.Engine/UI/ShiftButton.Designer.cs deleted file mode 100644 index c744a90..0000000 --- a/ShiftOS.Engine/UI/ShiftButton.Designer.cs +++ /dev/null @@ -1,36 +0,0 @@ -namespace ShiftOS.Engine.UI -{ - partial class ShiftButton - { - /// <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(); - } - - #endregion - } -} diff --git a/ShiftOS.Engine/UI/ShiftButton.cs b/ShiftOS.Engine/UI/ShiftButton.cs deleted file mode 100644 index a025a40..0000000 --- a/ShiftOS.Engine/UI/ShiftButton.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace ShiftOS.Engine.UI -{ - public partial class ShiftButton : Control, IButtonControl - { - private bool _pressing = false; - private Color _lightBack; - public ShiftButton() - { - InitializeComponent(); - } - - public DialogResult DialogResult { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } - - public void NotifyDefault(bool value) - { - - } - - public void PerformClick() - { - this.OnClick(new EventArgs()); - } - - protected override void OnPaint(PaintEventArgs pe) - { - base.OnPaint(pe); - this.Font = new Font("Lucida Console", 9, FontStyle.Regular); - _lightBack = Color.WhiteSmoke; - var g = pe.Graphics; - g.Clear(BackColor); - g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias; - var sf = new StringFormat(); - - if (_pressing) - { - g.FillRectangle(new SolidBrush(Color.White), 0, 0, Width, Height); - g.DrawString(Text, Font, new SolidBrush(Color.Black), ((Width / 2) + 1), (Height / 2) + 1); - } - else - { - g.FillRectangle(new SolidBrush(Color.WhiteSmoke), 0, 0, Width, Height); - } - } - } -} |
