From 61e6d0bda4fa7cb2c1dab27aade4c6c5bbc8ed8f Mon Sep 17 00:00:00 2001 From: CreepyCrafter24 <33260128+CreepyCrafter24@users.noreply.github.com> Date: Sat, 30 Nov 2019 20:03:55 +0100 Subject: [PATCH] Add project files. --- PowerCalc.sln | 25 ++ PowerCalc/App.config | 6 + PowerCalc/MainForm.Designer.cs | 259 +++++++++++++++++++++ PowerCalc/MainForm.cs | 129 ++++++++++ PowerCalc/MainForm.resx | 120 ++++++++++ PowerCalc/PowerCalc.csproj | 101 ++++++++ PowerCalc/Program.cs | 22 ++ PowerCalc/Properties/AssemblyInfo.cs | 36 +++ PowerCalc/Properties/Resources.Designer.cs | 68 ++++++ PowerCalc/Properties/Resources.resx | 117 ++++++++++ PowerCalc/Properties/Settings.Designer.cs | 29 +++ PowerCalc/Properties/Settings.settings | 7 + PowerCalc/packages.config | 9 + 13 files changed, 928 insertions(+) create mode 100644 PowerCalc.sln create mode 100644 PowerCalc/App.config create mode 100644 PowerCalc/MainForm.Designer.cs create mode 100644 PowerCalc/MainForm.cs create mode 100644 PowerCalc/MainForm.resx create mode 100644 PowerCalc/PowerCalc.csproj create mode 100644 PowerCalc/Program.cs create mode 100644 PowerCalc/Properties/AssemblyInfo.cs create mode 100644 PowerCalc/Properties/Resources.Designer.cs create mode 100644 PowerCalc/Properties/Resources.resx create mode 100644 PowerCalc/Properties/Settings.Designer.cs create mode 100644 PowerCalc/Properties/Settings.settings create mode 100644 PowerCalc/packages.config diff --git a/PowerCalc.sln b/PowerCalc.sln new file mode 100644 index 0000000..0c0f69e --- /dev/null +++ b/PowerCalc.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29519.87 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PowerCalc", "PowerCalc\PowerCalc.csproj", "{C97F69FA-BACC-45BE-97A2-6D88535B7665}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C97F69FA-BACC-45BE-97A2-6D88535B7665}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C97F69FA-BACC-45BE-97A2-6D88535B7665}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C97F69FA-BACC-45BE-97A2-6D88535B7665}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C97F69FA-BACC-45BE-97A2-6D88535B7665}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {1CA37412-F755-473F-BD5C-DDCD6CC9C313} + EndGlobalSection +EndGlobal diff --git a/PowerCalc/App.config b/PowerCalc/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/PowerCalc/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PowerCalc/MainForm.Designer.cs b/PowerCalc/MainForm.Designer.cs new file mode 100644 index 0000000..05b1ca8 --- /dev/null +++ b/PowerCalc/MainForm.Designer.cs @@ -0,0 +1,259 @@ +namespace PowerCalc +{ + partial class MainForm + { + /// + /// 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 Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.evalBox = new System.Windows.Forms.Panel(); + this.calcBox1 = new System.Windows.Forms.TextBox(); + this.calcBox2 = new System.Windows.Forms.TextBox(); + this.calcBox3 = new System.Windows.Forms.TextBox(); + this.calcBox4 = new System.Windows.Forms.TextBox(); + this.calcLabel1 = new System.Windows.Forms.Label(); + this.calcLabel2 = new System.Windows.Forms.Label(); + this.calcLabel3 = new System.Windows.Forms.Label(); + this.calcLabel4 = new System.Windows.Forms.Label(); + this.splitContainer = new System.Windows.Forms.SplitContainer(); + this.evalButton = new System.Windows.Forms.Button(); + this.logExpandButton = new System.Windows.Forms.Button(); + this.logBox = new System.Windows.Forms.TextBox(); + this.logCollapseButton = new System.Windows.Forms.Button(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit(); + this.splitContainer.Panel1.SuspendLayout(); + this.splitContainer.Panel2.SuspendLayout(); + this.splitContainer.SuspendLayout(); + this.SuspendLayout(); + // + // evalBox + // + this.evalBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.evalBox.BackColor = System.Drawing.Color.White; + this.evalBox.Location = new System.Drawing.Point(3, 5); + this.evalBox.Name = "evalBox"; + this.evalBox.Size = new System.Drawing.Size(231, 134); + this.evalBox.TabIndex = 0; + // + // calcBox1 + // + this.calcBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.calcBox1.Location = new System.Drawing.Point(27, 174); + this.calcBox1.Name = "calcBox1"; + this.calcBox1.Size = new System.Drawing.Size(207, 20); + this.calcBox1.TabIndex = 1; + this.calcBox1.Text = "x"; + // + // calcBox2 + // + this.calcBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.calcBox2.Location = new System.Drawing.Point(27, 200); + this.calcBox2.Name = "calcBox2"; + this.calcBox2.Size = new System.Drawing.Size(207, 20); + this.calcBox2.TabIndex = 2; + this.calcBox2.Text = "x"; + // + // calcBox3 + // + this.calcBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.calcBox3.Location = new System.Drawing.Point(27, 226); + this.calcBox3.Name = "calcBox3"; + this.calcBox3.Size = new System.Drawing.Size(207, 20); + this.calcBox3.TabIndex = 3; + this.calcBox3.Text = "x"; + // + // calcBox4 + // + this.calcBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.calcBox4.Location = new System.Drawing.Point(27, 252); + this.calcBox4.Name = "calcBox4"; + this.calcBox4.Size = new System.Drawing.Size(207, 20); + this.calcBox4.TabIndex = 4; + this.calcBox4.Text = "x"; + // + // calcLabel1 + // + this.calcLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.calcLabel1.AutoSize = true; + this.calcLabel1.ForeColor = System.Drawing.Color.Red; + this.calcLabel1.Location = new System.Drawing.Point(3, 177); + this.calcLabel1.Name = "calcLabel1"; + this.calcLabel1.Size = new System.Drawing.Size(27, 13); + this.calcLabel1.TabIndex = 5; + this.calcLabel1.Text = "f(x)="; + // + // calcLabel2 + // + this.calcLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.calcLabel2.AutoSize = true; + this.calcLabel2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); + this.calcLabel2.Location = new System.Drawing.Point(3, 203); + this.calcLabel2.Name = "calcLabel2"; + this.calcLabel2.Size = new System.Drawing.Size(27, 13); + this.calcLabel2.TabIndex = 6; + this.calcLabel2.Text = "f(x)="; + // + // calcLabel3 + // + this.calcLabel3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.calcLabel3.AutoSize = true; + this.calcLabel3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); + this.calcLabel3.Location = new System.Drawing.Point(3, 229); + this.calcLabel3.Name = "calcLabel3"; + this.calcLabel3.Size = new System.Drawing.Size(27, 13); + this.calcLabel3.TabIndex = 7; + this.calcLabel3.Text = "f(x)="; + // + // calcLabel4 + // + this.calcLabel4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.calcLabel4.AutoSize = true; + this.calcLabel4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192))))); + this.calcLabel4.Location = new System.Drawing.Point(3, 255); + this.calcLabel4.Name = "calcLabel4"; + this.calcLabel4.Size = new System.Drawing.Size(27, 13); + this.calcLabel4.TabIndex = 8; + this.calcLabel4.Text = "f(x)="; + // + // splitContainer + // + this.splitContainer.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer.Location = new System.Drawing.Point(0, 0); + this.splitContainer.MinimumSize = new System.Drawing.Size(200, 200); + this.splitContainer.Name = "splitContainer"; + // + // splitContainer.Panel1 + // + this.splitContainer.Panel1.AutoScroll = true; + this.splitContainer.Panel1.Controls.Add(this.evalButton); + this.splitContainer.Panel1.Controls.Add(this.logExpandButton); + this.splitContainer.Panel1.Controls.Add(this.evalBox); + this.splitContainer.Panel1.Controls.Add(this.calcBox1); + this.splitContainer.Panel1.Controls.Add(this.calcLabel1); + this.splitContainer.Panel1.Controls.Add(this.calcBox2); + this.splitContainer.Panel1.Controls.Add(this.calcLabel2); + this.splitContainer.Panel1.Controls.Add(this.calcBox3); + this.splitContainer.Panel1.Controls.Add(this.calcLabel3); + this.splitContainer.Panel1.Controls.Add(this.calcBox4); + this.splitContainer.Panel1.Controls.Add(this.calcLabel4); + this.splitContainer.Panel1MinSize = 200; + // + // splitContainer.Panel2 + // + this.splitContainer.Panel2.Controls.Add(this.logBox); + this.splitContainer.Panel2.Controls.Add(this.logCollapseButton); + this.splitContainer.Panel2MinSize = 0; + this.splitContainer.Size = new System.Drawing.Size(407, 275); + this.splitContainer.SplitterDistance = 237; + this.splitContainer.TabIndex = 9; + // + // evalButton + // + this.evalButton.Anchor = System.Windows.Forms.AnchorStyles.Left; + this.evalButton.Location = new System.Drawing.Point(3, 145); + this.evalButton.Name = "evalButton"; + this.evalButton.Size = new System.Drawing.Size(59, 23); + this.evalButton.TabIndex = 9; + this.evalButton.Text = "Eval"; + this.evalButton.UseVisualStyleBackColor = true; + this.evalButton.Click += new System.EventHandler(this.evalButton_Click); + // + // logExpandButton + // + this.logExpandButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.logExpandButton.Location = new System.Drawing.Point(211, 145); + this.logExpandButton.Name = "logExpandButton"; + this.logExpandButton.Size = new System.Drawing.Size(23, 23); + this.logExpandButton.TabIndex = 0; + this.logExpandButton.Text = ">"; + this.logExpandButton.UseVisualStyleBackColor = true; + this.logExpandButton.Visible = false; + this.logExpandButton.Click += new System.EventHandler(this.logExpandButton_Click); + // + // logBox + // + this.logBox.Dock = System.Windows.Forms.DockStyle.Fill; + this.logBox.Location = new System.Drawing.Point(0, 0); + this.logBox.Multiline = true; + this.logBox.Name = "logBox"; + this.logBox.Size = new System.Drawing.Size(166, 252); + this.logBox.TabIndex = 0; + // + // logCollapseButton + // + this.logCollapseButton.Dock = System.Windows.Forms.DockStyle.Bottom; + this.logCollapseButton.Location = new System.Drawing.Point(0, 252); + this.logCollapseButton.Name = "logCollapseButton"; + this.logCollapseButton.Size = new System.Drawing.Size(166, 23); + this.logCollapseButton.TabIndex = 1; + this.logCollapseButton.Text = "<<<"; + this.logCollapseButton.UseVisualStyleBackColor = true; + this.logCollapseButton.Click += new System.EventHandler(this.logCollapseButton_Click); + // + // MainForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.ClientSize = new System.Drawing.Size(407, 275); + this.Controls.Add(this.splitContainer); + this.MaximizeBox = false; + this.Name = "MainForm"; + this.Text = "PowerCalc"; + this.splitContainer.Panel1.ResumeLayout(false); + this.splitContainer.Panel1.PerformLayout(); + this.splitContainer.Panel2.ResumeLayout(false); + this.splitContainer.Panel2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer)).EndInit(); + this.splitContainer.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel evalBox; + private System.Windows.Forms.TextBox calcBox1; + private System.Windows.Forms.TextBox calcBox2; + private System.Windows.Forms.TextBox calcBox3; + private System.Windows.Forms.TextBox calcBox4; + private System.Windows.Forms.Label calcLabel1; + private System.Windows.Forms.Label calcLabel2; + private System.Windows.Forms.Label calcLabel3; + private System.Windows.Forms.Label calcLabel4; + private System.Windows.Forms.SplitContainer splitContainer; + private System.Windows.Forms.TextBox logBox; + private System.Windows.Forms.Button logCollapseButton; + private System.Windows.Forms.Button logExpandButton; + private System.Windows.Forms.Button evalButton; + } +} + diff --git a/PowerCalc/MainForm.cs b/PowerCalc/MainForm.cs new file mode 100644 index 0000000..fc9c0cb --- /dev/null +++ b/PowerCalc/MainForm.cs @@ -0,0 +1,129 @@ +using NCalc2; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PowerCalc +{ + public partial class MainForm : Form + { + Thread evalThread; + public MainForm() + { + InitializeComponent(); + } + + private void logCollapseButton_Click(object sender, EventArgs e) + { + logExpandButton.Visible = true; + splitContainer.Panel2Collapsed = true; + } + + private void logExpandButton_Click(object sender, EventArgs e) + { + logExpandButton.Visible = false; + splitContainer.Panel2Collapsed = false; + } + + private void evalButton_Click(object sender, EventArgs e) + { + FormBorderStyle = FormBorderStyle.FixedSingle; + evalThread = new Thread(() => + { + Bitmap bmp = new Bitmap(evalBox.Width, evalBox.Height); + Graphics g = Graphics.FromImage(bmp); + List, Expression>> lines = new List, Expression>> + { + new Tuple, Expression>(Color.Red, new List(), new Expression(calcBox1.Text)), + new Tuple, Expression>(Color.FromArgb(255, 128, 0), new List(), new Expression(calcBox2.Text)), + new Tuple, Expression>(Color.FromArgb(0, 192, 0), new List(), new Expression(calcBox3.Text)), + new Tuple, Expression>(Color.FromArgb(0, 0, 192), new List(), new Expression(calcBox4.Text)) + }; + try + { + lines.ForEach(s => + { + for (int i = 0; i < evalBox.Width; i++) + { + try + { + s.Item3.Parameters.Clear(); + s.Item3.Parameters.Add("x", i); + double val = -1; + object tmp = s.Item3.Evaluate(); + if (tmp.GetType() == typeof(bool)) + val = (bool)tmp ? 1 : 0; + else if (tmp.GetType() == typeof(byte)) + val = (byte)tmp; + else if (tmp.GetType() == typeof(sbyte)) + val = (sbyte)tmp; + else if (tmp.GetType() == typeof(short)) + val = (short)tmp; + else if (tmp.GetType() == typeof(ushort)) + val = (ushort)tmp; + else if (tmp.GetType() == typeof(int)) + val = (int)tmp; + else if (tmp.GetType() == typeof(uint)) + val = (uint)tmp; + else if (tmp.GetType() == typeof(long)) + val = (long)tmp; + else if (tmp.GetType() == typeof(ulong)) + val = (ulong)tmp; + else if (tmp.GetType() == typeof(float)) + val = (float)tmp; + else if (tmp.GetType() == typeof(double)) + val = (double)tmp; + else if (tmp.GetType() == typeof(decimal)) + val = (double)(decimal)tmp; + else + log("Type mismatch! (" + tmp.GetType().ToString() + ")"); + float val1 = Convert.ToSingle(val); + if (i >= 0 && i < evalBox.Width && val1 >= 0 && val1 < evalBox.Height) + s.Item2.Add(new PointF(i, val1)); + } + catch (Exception e1) + { +#if DEBUG + log(e1.ToString()); +#else + log(e1.Message); +#endif + } + } + g.DrawLines(new Pen(s.Item1), s.Item2.ToArray()); + }); + g.Flush(); + g.Dispose(); + evalBox.BackgroundImage = bmp; + } + catch (Exception e1) + { + log("FATAL: " + e1.ToString()); + } + finally + { + Invoke((MethodInvoker)delegate () + { + FormBorderStyle = FormBorderStyle.Sizable; + }); + } + }); + evalThread.Start(); + } + + void log(string text) + { + Invoke((MethodInvoker)delegate () { logBox.Text = text + "\r\n" + logBox.Text; }); +#if DEBUG + Console.WriteLine(text); +#endif + } + } +} diff --git a/PowerCalc/MainForm.resx b/PowerCalc/MainForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/PowerCalc/MainForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file diff --git a/PowerCalc/PowerCalc.csproj b/PowerCalc/PowerCalc.csproj new file mode 100644 index 0000000..e9459bb --- /dev/null +++ b/PowerCalc/PowerCalc.csproj @@ -0,0 +1,101 @@ + + + + + + Debug + AnyCPU + {C97F69FA-BACC-45BE-97A2-6D88535B7665} + WinExe + PowerCalc + PowerCalc + v4.8 + 512 + true + true + + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\Antlr4.Runtime.4.6.4\lib\net45\Antlr4.Runtime.dll + + + ..\packages\NCalc2.2.1.0\lib\net46\NCalc2.dll + + + + + + + + + + + + + + + + Form + + + MainForm.cs + + + + + MainForm.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + + \ No newline at end of file diff --git a/PowerCalc/Program.cs b/PowerCalc/Program.cs new file mode 100644 index 0000000..f9fca68 --- /dev/null +++ b/PowerCalc/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PowerCalc +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new MainForm()); + } + } +} diff --git a/PowerCalc/Properties/AssemblyInfo.cs b/PowerCalc/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..408489a --- /dev/null +++ b/PowerCalc/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("PowerCalc")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("PowerCalc")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("c97f69fa-bacc-45be-97a2-6d88535b7665")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/PowerCalc/Properties/Resources.Designer.cs b/PowerCalc/Properties/Resources.Designer.cs new file mode 100644 index 0000000..2efa7d4 --- /dev/null +++ b/PowerCalc/Properties/Resources.Designer.cs @@ -0,0 +1,68 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace PowerCalc.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PowerCalc.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/PowerCalc/Properties/Resources.resx b/PowerCalc/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/PowerCalc/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/PowerCalc/Properties/Settings.Designer.cs b/PowerCalc/Properties/Settings.Designer.cs new file mode 100644 index 0000000..02f6a2f --- /dev/null +++ b/PowerCalc/Properties/Settings.Designer.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace PowerCalc.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get { + return defaultInstance; + } + } + } +} diff --git a/PowerCalc/Properties/Settings.settings b/PowerCalc/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/PowerCalc/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PowerCalc/packages.config b/PowerCalc/packages.config new file mode 100644 index 0000000..c322690 --- /dev/null +++ b/PowerCalc/packages.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file