From 4ff53eb4a271ee7ee3bc52674a29fb6b2d07e275 Mon Sep 17 00:00:00 2001 From: lempamo Date: Fri, 24 Feb 2017 20:12:14 -0500 Subject: Get started on Calculator --- .../Applications/Calculator.Designer.cs | 58 ++++++++++ ShiftOS.WinForms/Applications/Calculator.cs | 52 +++++++++ ShiftOS.WinForms/Applications/Calculator.resx | 123 +++++++++++++++++++++ 3 files changed, 233 insertions(+) create mode 100644 ShiftOS.WinForms/Applications/Calculator.Designer.cs create mode 100644 ShiftOS.WinForms/Applications/Calculator.cs create mode 100644 ShiftOS.WinForms/Applications/Calculator.resx (limited to 'ShiftOS.WinForms') diff --git a/ShiftOS.WinForms/Applications/Calculator.Designer.cs b/ShiftOS.WinForms/Applications/Calculator.Designer.cs new file mode 100644 index 0000000..4347aa6 --- /dev/null +++ b/ShiftOS.WinForms/Applications/Calculator.Designer.cs @@ -0,0 +1,58 @@ +namespace ShiftOS.WinForms.Applications +{ + partial class Calculator + { + /// + /// 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() + { + this.numBox = new System.Windows.Forms.TextBox(); + this.SuspendLayout(); + // + // numBox + // + this.numBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.numBox.Location = new System.Drawing.Point(4, 3); + this.numBox.Name = "numBox"; + this.numBox.Size = new System.Drawing.Size(143, 30); + this.numBox.TabIndex = 0; + // + // Calculator + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.numBox); + this.Name = "Calculator"; + this.Load += new System.EventHandler(this.Template_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TextBox numBox; + } +} diff --git a/ShiftOS.WinForms/Applications/Calculator.cs b/ShiftOS.WinForms/Applications/Calculator.cs new file mode 100644 index 0000000..cc34769 --- /dev/null +++ b/ShiftOS.WinForms/Applications/Calculator.cs @@ -0,0 +1,52 @@ +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; + +namespace ShiftOS.WinForms.Applications +{ + [Launcher("Calculator", true, "al_calculator", "Accessories")] + [RequiresUpgrade("calculator")] + [WinOpen("calculator")] + [DefaultIcon("iconCalculator")] + public partial class Calculator : UserControl, IShiftOSWindow + { + public bool justopened = false; + + public Calculator() + { + InitializeComponent(); + } + + private void Template_Load(object sender, EventArgs e) + { + justopened = true; + } + + public void OnLoad() + { + throw new NotImplementedException(); + } + + public void OnSkinLoad() + { + throw new NotImplementedException(); + } + + public bool OnUnload() + { + throw new NotImplementedException(); + } + + public void OnUpgrade() + { + throw new NotImplementedException(); + } + } +} diff --git a/ShiftOS.WinForms/Applications/Calculator.resx b/ShiftOS.WinForms/Applications/Calculator.resx new file mode 100644 index 0000000..61bc649 --- /dev/null +++ b/ShiftOS.WinForms/Applications/Calculator.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + \ No newline at end of file -- cgit v1.2.3