From 085efa3c52f696ae394b64dfc5d1085eab3fbb21 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Mon, 6 Jun 2022 22:07:17 +0200 Subject: [PATCH] Added loader screen --- I18N Commander/UI WinForms/Loader.Designer.cs | 81 +++++++++++++++++++ I18N Commander/UI WinForms/Loader.cs | 9 +++ I18N Commander/UI WinForms/Loader.resx | 60 ++++++++++++++ I18N Commander/UI WinForms/Program.cs | 6 ++ 4 files changed, 156 insertions(+) create mode 100644 I18N Commander/UI WinForms/Loader.Designer.cs create mode 100644 I18N Commander/UI WinForms/Loader.cs create mode 100644 I18N Commander/UI WinForms/Loader.resx diff --git a/I18N Commander/UI WinForms/Loader.Designer.cs b/I18N Commander/UI WinForms/Loader.Designer.cs new file mode 100644 index 0000000..af291fb --- /dev/null +++ b/I18N Commander/UI WinForms/Loader.Designer.cs @@ -0,0 +1,81 @@ +namespace UI_WinForms +{ + partial class Loader + { + /// + /// 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.tableLayout = new System.Windows.Forms.TableLayoutPanel(); + this.loaderStart = new UI_WinForms.Components.LoaderStart(); + this.tableLayout.SuspendLayout(); + this.SuspendLayout(); + // + // tableLayout + // + this.tableLayout.ColumnCount = 1; + this.tableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.tableLayout.Controls.Add(this.loaderStart, 0, 0); + this.tableLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayout.Location = new System.Drawing.Point(0, 0); + this.tableLayout.Name = "tableLayout"; + this.tableLayout.RowCount = 1; + this.tableLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.tableLayout.Size = new System.Drawing.Size(800, 450); + this.tableLayout.TabIndex = 0; + // + // loaderStart + // + this.loaderStart.Dock = System.Windows.Forms.DockStyle.Fill; + this.loaderStart.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + this.loaderStart.Location = new System.Drawing.Point(3, 3); + this.loaderStart.Name = "loaderStart"; + this.loaderStart.Size = new System.Drawing.Size(794, 444); + this.loaderStart.TabIndex = 0; + // + // Loader + // + this.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.tableLayout); + this.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Name = "Loader"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Loader"; + this.tableLayout.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private TableLayoutPanel tableLayout; + private Components.LoaderStart loaderStart; + } +} \ No newline at end of file diff --git a/I18N Commander/UI WinForms/Loader.cs b/I18N Commander/UI WinForms/Loader.cs new file mode 100644 index 0000000..6980c76 --- /dev/null +++ b/I18N Commander/UI WinForms/Loader.cs @@ -0,0 +1,9 @@ +namespace UI_WinForms; + +public partial class Loader : Form +{ + public Loader() + { + this.InitializeComponent(); + } +} \ No newline at end of file diff --git a/I18N Commander/UI WinForms/Loader.resx b/I18N Commander/UI WinForms/Loader.resx new file mode 100644 index 0000000..b5ae26c --- /dev/null +++ b/I18N Commander/UI WinForms/Loader.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/I18N Commander/UI WinForms/Program.cs b/I18N Commander/UI WinForms/Program.cs index 8a629c4..50c87bb 100644 --- a/I18N Commander/UI WinForms/Program.cs +++ b/I18N Commander/UI WinForms/Program.cs @@ -6,6 +6,12 @@ internal static class Program private static void Main() { ApplicationConfiguration.Initialize(); + + // Start the loader screen: + var loader = new Loader(); + Application.Run(loader); + + // Start the main app: Application.Run(new Main()); } } \ No newline at end of file