From 6bfed779552aa2fa05d83513ce78c9b04745db97 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Tue, 20 Apr 2021 12:57:35 -0500 Subject: added Plotter WinForms class --- src/CS340.Plotter/CS340.Plotter.csproj | 14 ++++++++ src/CS340.Plotter/Plot.Designer.cs | 48 +++++++++++++++++++++++++++ src/CS340.Plotter/Plot.cs | 21 ++++++++++++ src/CS340.Plotter/Plot.resx | 60 ++++++++++++++++++++++++++++++++++ src/CS340.Plotter/Program.cs | 23 +++++++++++++ 5 files changed, 166 insertions(+) create mode 100644 src/CS340.Plotter/CS340.Plotter.csproj create mode 100644 src/CS340.Plotter/Plot.Designer.cs create mode 100644 src/CS340.Plotter/Plot.cs create mode 100644 src/CS340.Plotter/Plot.resx create mode 100644 src/CS340.Plotter/Program.cs (limited to 'src') diff --git a/src/CS340.Plotter/CS340.Plotter.csproj b/src/CS340.Plotter/CS340.Plotter.csproj new file mode 100644 index 0000000..de15111 --- /dev/null +++ b/src/CS340.Plotter/CS340.Plotter.csproj @@ -0,0 +1,14 @@ + + + + WinExe + net5.0-windows + true + Plotter + + + + + + + \ No newline at end of file diff --git a/src/CS340.Plotter/Plot.Designer.cs b/src/CS340.Plotter/Plot.Designer.cs new file mode 100644 index 0000000..c1a6b5f --- /dev/null +++ b/src/CS340.Plotter/Plot.Designer.cs @@ -0,0 +1,48 @@ + +namespace Plotter +{ + partial class Plot + { + /// + /// 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.SuspendLayout(); + // + // Plot + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Name = "Plot"; + this.Text = "Form1"; + this.ResumeLayout(false); + + } + + #endregion + } +} + diff --git a/src/CS340.Plotter/Plot.cs b/src/CS340.Plotter/Plot.cs new file mode 100644 index 0000000..7b274d8 --- /dev/null +++ b/src/CS340.Plotter/Plot.cs @@ -0,0 +1,21 @@ +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 Plotter +{ + public partial class Plot : Form + { + public Plot() + { + InitializeComponent(); + } + + } +} diff --git a/src/CS340.Plotter/Plot.resx b/src/CS340.Plotter/Plot.resx new file mode 100644 index 0000000..f298a7b --- /dev/null +++ b/src/CS340.Plotter/Plot.resx @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/src/CS340.Plotter/Program.cs b/src/CS340.Plotter/Program.cs new file mode 100644 index 0000000..0205767 --- /dev/null +++ b/src/CS340.Plotter/Program.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Plotter +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.SetHighDpiMode(HighDpiMode.SystemAware); + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Plot()); + } + } +} -- cgit v1.2.3-70-g09d2