From b5841747076f41ad9edf79a8ebcad85a1ad2a25e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommy=20=C3=96man?= Date: Fri, 26 Apr 2024 10:45:39 +0200 Subject: [PATCH] Initial project tweaks Sets the UI and Library up to be in a good spot to start work --- ...orm1.Designer.cs => Dashboard.Designer.cs} | 18 +++++-- PostmanCloneUI/{Form1.cs => Dashboard.cs} | 4 +- PostmanCloneUI/{Form1.resx => Dashboard.resx} | 50 +++++++++---------- PostmanCloneUI/PostmanCloneUI.csproj | 4 ++ PostmanCloneUI/Program.cs | 25 +++++----- 5 files changed, 56 insertions(+), 45 deletions(-) rename PostmanCloneUI/{Form1.Designer.cs => Dashboard.Designer.cs} (64%) rename PostmanCloneUI/{Form1.cs => Dashboard.cs} (58%) rename PostmanCloneUI/{Form1.resx => Dashboard.resx} (93%) diff --git a/PostmanCloneUI/Form1.Designer.cs b/PostmanCloneUI/Dashboard.Designer.cs similarity index 64% rename from PostmanCloneUI/Form1.Designer.cs rename to PostmanCloneUI/Dashboard.Designer.cs index a5f84a7..aca89a8 100644 --- a/PostmanCloneUI/Form1.Designer.cs +++ b/PostmanCloneUI/Dashboard.Designer.cs @@ -1,6 +1,6 @@ namespace PostmanCloneUI { - partial class Form1 + partial class Dashboard { /// /// Required designer variable. @@ -28,10 +28,18 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Text = "Form1"; + SuspendLayout(); + // + // Dashboard + // + AutoScaleDimensions = new SizeF(13F, 32F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(892, 466); + Font = new Font("Segoe UI", 18F, FontStyle.Regular, GraphicsUnit.Point, 0); + Margin = new Padding(6, 6, 6, 6); + Name = "Dashboard"; + Text = "Postman Clone by Tim Corey"; + ResumeLayout(false); } #endregion diff --git a/PostmanCloneUI/Form1.cs b/PostmanCloneUI/Dashboard.cs similarity index 58% rename from PostmanCloneUI/Form1.cs rename to PostmanCloneUI/Dashboard.cs index 52d56dc..1a1c6db 100644 --- a/PostmanCloneUI/Form1.cs +++ b/PostmanCloneUI/Dashboard.cs @@ -1,8 +1,8 @@ namespace PostmanCloneUI { - public partial class Form1 : Form + public partial class Dashboard : Form { - public Form1() + public Dashboard() { InitializeComponent(); } diff --git a/PostmanCloneUI/Form1.resx b/PostmanCloneUI/Dashboard.resx similarity index 93% rename from PostmanCloneUI/Form1.resx rename to PostmanCloneUI/Dashboard.resx index 1af7de1..af32865 100644 --- a/PostmanCloneUI/Form1.resx +++ b/PostmanCloneUI/Dashboard.resx @@ -1,17 +1,17 @@  - diff --git a/PostmanCloneUI/PostmanCloneUI.csproj b/PostmanCloneUI/PostmanCloneUI.csproj index 663fdb8..e62756f 100644 --- a/PostmanCloneUI/PostmanCloneUI.csproj +++ b/PostmanCloneUI/PostmanCloneUI.csproj @@ -8,4 +8,8 @@ enable + + + + \ No newline at end of file diff --git a/PostmanCloneUI/Program.cs b/PostmanCloneUI/Program.cs index 7291be1..a7957a8 100644 --- a/PostmanCloneUI/Program.cs +++ b/PostmanCloneUI/Program.cs @@ -1,17 +1,16 @@ -namespace PostmanCloneUI +namespace PostmanCloneUI; + +internal static class Program { - internal static class Program + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() { - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() - { - // To customize application configuration such as set high DPI settings or default font, - // see https://aka.ms/applicationconfiguration. - ApplicationConfiguration.Initialize(); - Application.Run(new Form1()); - } + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new Dashboard()); } } \ No newline at end of file