diff options
author | Dimitrij <kvarkas@gmail.com> | 2022-02-23 02:26:04 +0300 |
---|---|---|
committer | Dimitrij <kvarkas@gmail.com> | 2022-02-23 02:26:04 +0300 |
commit | 34f3ffa129373ad646f7bd1e4c0a776f0bade5f4 (patch) | |
tree | 160d42200bfb0228d8957634ac065cf1e5add29c /mRemoteNG | |
parent | ecd25a673e2b03aa8d2641757caa30d4893c0613 (diff) |
Add version number to splash screen
Diffstat (limited to 'mRemoteNG')
-rw-r--r-- | mRemoteNG/UI/Forms/FrmSplashScreen.Designer.cs | 18 | ||||
-rw-r--r-- | mRemoteNG/UI/Forms/FrmSplashScreen.cs | 3 | ||||
-rw-r--r-- | mRemoteNG/UI/Forms/FrmSplashScreen.resx | 62 |
3 files changed, 20 insertions, 63 deletions
diff --git a/mRemoteNG/UI/Forms/FrmSplashScreen.Designer.cs b/mRemoteNG/UI/Forms/FrmSplashScreen.Designer.cs index 080df07d..80dfc41d 100644 --- a/mRemoteNG/UI/Forms/FrmSplashScreen.Designer.cs +++ b/mRemoteNG/UI/Forms/FrmSplashScreen.Designer.cs @@ -28,8 +28,20 @@ /// </summary> private void InitializeComponent() { + this.label1 = new System.Windows.Forms.Label(); this.SuspendLayout(); // + // label1 + // + this.label1.AutoSize = true; + this.label1.BackColor = System.Drawing.Color.Transparent; + this.label1.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + this.label1.ForeColor = System.Drawing.Color.White; + this.label1.Location = new System.Drawing.Point(390, 100); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(0, 17); + this.label1.TabIndex = 0; + // // FrmSplashScreen // this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); @@ -38,8 +50,9 @@ this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.ClientSize = new System.Drawing.Size(450, 120); this.ControlBox = false; + this.Controls.Add(this.label1); this.DoubleBuffered = true; - this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Margin = new System.Windows.Forms.Padding(2); this.MaximizeBox = false; @@ -52,9 +65,12 @@ this.Text = "frmSplashScreen"; this.TopMost = true; this.ResumeLayout(false); + this.PerformLayout(); } #endregion + + private System.Windows.Forms.Label label1; } }
\ No newline at end of file diff --git a/mRemoteNG/UI/Forms/FrmSplashScreen.cs b/mRemoteNG/UI/Forms/FrmSplashScreen.cs index 9c53f02f..472fad0d 100644 --- a/mRemoteNG/UI/Forms/FrmSplashScreen.cs +++ b/mRemoteNG/UI/Forms/FrmSplashScreen.cs @@ -1,6 +1,7 @@ using System; using System.Runtime.InteropServices; using System.Windows.Forms; +using mRemoteNG.App.Info; namespace mRemoteNG.UI.Forms { @@ -11,7 +12,7 @@ namespace mRemoteNG.UI.Forms private FrmSplashScreen() { InitializeComponent(); - + label1.Text = $@"v. {GeneralAppInfo.ApplicationVersion}"; Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 20, 20)); } diff --git a/mRemoteNG/UI/Forms/FrmSplashScreen.resx b/mRemoteNG/UI/Forms/FrmSplashScreen.resx index 1af7de15..f298a7be 100644 --- a/mRemoteNG/UI/Forms/FrmSplashScreen.resx +++ b/mRemoteNG/UI/Forms/FrmSplashScreen.resx @@ -1,64 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> -<root> - <!-- - Microsoft ResX Schema - - Version 2.0 - - The primary goals of this format is to allow a simple XML format - that is mostly human readable. The generation and parsing of the - various data types are done through the TypeConverter classes - associated with the data types. - - Example: - - ... ado.net/XML headers & schema ... - <resheader name="resmimetype">text/microsoft-resx</resheader> - <resheader name="version">2.0</resheader> - <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> - <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> - <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> - <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> - <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> - <value>[base64 mime encoded serialized .NET Framework object]</value> - </data> - <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> - <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> - <comment>This is a comment</comment> - </data> - - There are any number of "resheader" rows that contain simple - name/value pairs. - - Each data row contains a name, and value. The row also contains a - type or mimetype. Type corresponds to a .NET class that support - text/value conversion through the TypeConverter architecture. - Classes that don't support this are serialized and stored with the - mimetype set. - - The mimetype is used for serialized objects, and tells the - ResXResourceReader how to depersist the object. This is currently not - extensible. For a given mimetype the value must be set accordingly: - - Note - application/x-microsoft.net.object.binary.base64 is the format - that the ResXResourceWriter will generate, however the reader can - read any of the formats listed below. - - mimetype: application/x-microsoft.net.object.binary.base64 - value : The object must be serialized with - : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter - : and then encoded with base64 encoding. - - mimetype: application/x-microsoft.net.object.soap.base64 - value : The object must be serialized with - : System.Runtime.Serialization.Formatters.Soap.SoapFormatter - : and then encoded with base64 encoding. - - mimetype: application/x-microsoft.net.object.bytearray.base64 - value : The object must be serialized into a byte array - : using a System.ComponentModel.TypeConverter - : and then encoded with base64 encoding. - --> +<root> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:element name="root" msdata:IsDataSet="true"> |