From 5a8270c85734a7c1f14acd3b840d34063433ef9b Mon Sep 17 00:00:00 2001 From: Michael Johne Date: Mon, 26 Nov 2018 16:22:24 +0100 Subject: [PATCH] Add files via upload --- PlanetoidDB/CheckMpcorbDatForm.Designer.cs | 166 +++++++++++------- PlanetoidDB/CheckMpcorbDatForm.cs | 48 ++++- .../DatabaseInformationForm.Designer.cs | 60 +++---- PlanetoidDB/DownloadUpdateForm.cs | 69 +++----- PlanetoidDB/I10nStrings.Designer.cs | 55 +----- PlanetoidDB/I10nStrings.resx | 21 +-- PlanetoidDB/Planetoid-DB.csproj | 3 +- PlanetoidDB/PlanetoidDBForm.Designer.cs | 6 +- PlanetoidDB/PlanetoidDBForm.cs | 86 ++------- PlanetoidDB/PlanetoidDBForm.resx | 14 +- PlanetoidDB/Program.cs | 2 +- PlanetoidDB/Properties/Resources.Designer.cs | 9 - PlanetoidDB/Properties/Resources.resx | 3 - PlanetoidDB/TableModeForm.cs | 7 +- 14 files changed, 248 insertions(+), 301 deletions(-) diff --git a/PlanetoidDB/CheckMpcorbDatForm.Designer.cs b/PlanetoidDB/CheckMpcorbDatForm.Designer.cs index d21af8e0..98ef544c 100644 --- a/PlanetoidDB/CheckMpcorbDatForm.Designer.cs +++ b/PlanetoidDB/CheckMpcorbDatForm.Designer.cs @@ -32,9 +32,6 @@ private void InitializeComponent() System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CheckMpcorbDatForm)); this.toolTip = new System.Windows.Forms.ToolTip(this.components); this.buttonOK = new System.Windows.Forms.Button(); - this.statusStrip = new System.Windows.Forms.StatusStrip(); - this.labelHelp = new System.Windows.Forms.ToolStripStatusLabel(); - this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.labelIsUpdateNeeded = new System.Windows.Forms.Label(); this.labelMpcorbDatLocal = new System.Windows.Forms.Label(); this.labelMpcorbDatOnline = new System.Windows.Forms.Label(); @@ -44,6 +41,9 @@ private void InitializeComponent() this.labelModifiedDateValueLocal = new System.Windows.Forms.Label(); this.labelContentLengthValueOnline = new System.Windows.Forms.Label(); this.labelModifiedDateValueOnline = new System.Windows.Forms.Label(); + this.statusStrip = new System.Windows.Forms.StatusStrip(); + this.labelHelp = new System.Windows.Forms.ToolStripStatusLabel(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.statusStrip.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); this.SuspendLayout(); @@ -56,7 +56,7 @@ private void InitializeComponent() this.buttonOK.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonOK.Font = new System.Drawing.Font("Segoe UI", 8.5F); this.buttonOK.Image = global::Planetoid_DB.Properties.Resources.silk_tick; - this.buttonOK.Location = new System.Drawing.Point(184, 92); + this.buttonOK.Location = new System.Drawing.Point(185, 89); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(75, 23); this.buttonOK.TabIndex = 1; @@ -71,64 +71,11 @@ private void InitializeComponent() this.buttonOK.MouseEnter += new System.EventHandler(this.ButtonOK_Enter); this.buttonOK.MouseHover += new System.EventHandler(this.ButtonOK_Leave); // - // statusStrip - // - this.statusStrip.AccessibleDescription = "Show the status"; - this.statusStrip.AccessibleName = "Status bar"; - this.statusStrip.AccessibleRole = System.Windows.Forms.AccessibleRole.StatusBar; - this.statusStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Visible; - this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.labelHelp}); - this.statusStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow; - this.statusStrip.Location = new System.Drawing.Point(0, 118); - this.statusStrip.Name = "statusStrip"; - this.statusStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode; - this.statusStrip.ShowItemToolTips = true; - this.statusStrip.Size = new System.Drawing.Size(444, 21); - this.statusStrip.SizingGrip = false; - this.statusStrip.TabIndex = 2; - this.statusStrip.TabStop = true; - this.statusStrip.Text = "statusStrip"; - // - // labelHelp - // - this.labelHelp.AccessibleDescription = "Show some important informations"; - this.labelHelp.AccessibleName = "Information field"; - this.labelHelp.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; - this.labelHelp.Image = global::Planetoid_DB.Properties.Resources.silk_lightbulb; - this.labelHelp.Margin = new System.Windows.Forms.Padding(10, 3, 0, 2); - this.labelHelp.Name = "labelHelp"; - this.labelHelp.Size = new System.Drawing.Size(170, 16); - this.labelHelp.Text = "Show informative messages"; - this.labelHelp.ToolTipText = "Show informative messages"; - // - // tableLayoutPanel1 - // - this.tableLayoutPanel1.ColumnCount = 3; - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33334F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33334F)); - this.tableLayoutPanel1.Controls.Add(this.labelIsUpdateNeeded, 1, 3); - this.tableLayoutPanel1.Controls.Add(this.labelMpcorbDatLocal, 1, 0); - this.tableLayoutPanel1.Controls.Add(this.labelMpcorbDatOnline, 2, 0); - this.tableLayoutPanel1.Controls.Add(this.labelContentLengthText, 0, 1); - this.tableLayoutPanel1.Controls.Add(this.labelModifiedDateText, 0, 2); - this.tableLayoutPanel1.Controls.Add(this.labelContentLengthValueLocal, 1, 1); - this.tableLayoutPanel1.Controls.Add(this.labelModifiedDateValueLocal, 1, 2); - this.tableLayoutPanel1.Controls.Add(this.labelContentLengthValueOnline, 2, 1); - this.tableLayoutPanel1.Controls.Add(this.labelModifiedDateValueOnline, 2, 2); - this.tableLayoutPanel1.Location = new System.Drawing.Point(12, 12); - this.tableLayoutPanel1.Name = "tableLayoutPanel1"; - this.tableLayoutPanel1.RowCount = 4; - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.tableLayoutPanel1.Size = new System.Drawing.Size(420, 68); - this.tableLayoutPanel1.TabIndex = 0; - // // labelIsUpdateNeeded // + this.labelIsUpdateNeeded.AccessibleDescription = "Inform if an update is available"; + this.labelIsUpdateNeeded.AccessibleName = "Update text"; + this.labelIsUpdateNeeded.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelIsUpdateNeeded.AutoSize = true; this.labelIsUpdateNeeded.Dock = System.Windows.Forms.DockStyle.Fill; this.labelIsUpdateNeeded.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); @@ -138,6 +85,7 @@ private void InitializeComponent() this.labelIsUpdateNeeded.TabIndex = 8; this.labelIsUpdateNeeded.Text = "Update needed?"; this.labelIsUpdateNeeded.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.toolTip.SetToolTip(this.labelIsUpdateNeeded, "Inform if an update is available"); this.labelIsUpdateNeeded.Enter += new System.EventHandler(this.LabelIsUpdateNeeded_Enter); this.labelIsUpdateNeeded.Leave += new System.EventHandler(this.LabelIsUpdateNeeded_Leave); this.labelIsUpdateNeeded.MouseEnter += new System.EventHandler(this.LabelIsUpdateNeeded_Enter); @@ -145,6 +93,9 @@ private void InitializeComponent() // // labelMpcorbDatLocal // + this.labelMpcorbDatLocal.AccessibleDescription = "Information about the local MPCORB.DAT file"; + this.labelMpcorbDatLocal.AccessibleName = "Local MPCORB.DAT file"; + this.labelMpcorbDatLocal.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelMpcorbDatLocal.AutoSize = true; this.labelMpcorbDatLocal.Dock = System.Windows.Forms.DockStyle.Fill; this.labelMpcorbDatLocal.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); @@ -154,6 +105,7 @@ private void InitializeComponent() this.labelMpcorbDatLocal.TabIndex = 0; this.labelMpcorbDatLocal.Text = "MPCORB.DAT local"; this.labelMpcorbDatLocal.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.toolTip.SetToolTip(this.labelMpcorbDatLocal, "Information about the local MPCORB.DAT file"); this.labelMpcorbDatLocal.Enter += new System.EventHandler(this.LabelMpcorbDatLocal_Enter); this.labelMpcorbDatLocal.Leave += new System.EventHandler(this.LabelMpcorbDatLocal_Leave); this.labelMpcorbDatLocal.MouseEnter += new System.EventHandler(this.LabelMpcorbDatLocal_Enter); @@ -161,6 +113,9 @@ private void InitializeComponent() // // labelMpcorbDatOnline // + this.labelMpcorbDatOnline.AccessibleDescription = "Information about the online MPCORB.DAT file"; + this.labelMpcorbDatOnline.AccessibleName = "Online MPCORB.DAT file"; + this.labelMpcorbDatOnline.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelMpcorbDatOnline.AutoSize = true; this.labelMpcorbDatOnline.Dock = System.Windows.Forms.DockStyle.Fill; this.labelMpcorbDatOnline.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold); @@ -170,6 +125,7 @@ private void InitializeComponent() this.labelMpcorbDatOnline.TabIndex = 1; this.labelMpcorbDatOnline.Text = "MPCORB.DAT online"; this.labelMpcorbDatOnline.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.toolTip.SetToolTip(this.labelMpcorbDatOnline, "Information about the online MPCORB.DAT file"); this.labelMpcorbDatOnline.Enter += new System.EventHandler(this.LabelMpcorbDatOnline_Enter); this.labelMpcorbDatOnline.Leave += new System.EventHandler(this.LabelMpcorbDatOnline_Leave); this.labelMpcorbDatOnline.MouseEnter += new System.EventHandler(this.LabelMpcorbDatOnline_Enter); @@ -177,29 +133,39 @@ private void InitializeComponent() // // labelContentLengthText // + this.labelContentLengthText.AccessibleDescription = "Show the content length"; + this.labelContentLengthText.AccessibleName = "Content length"; + this.labelContentLengthText.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelContentLengthText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.labelContentLengthText.AutoSize = true; + this.labelContentLengthText.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold); this.labelContentLengthText.Location = new System.Drawing.Point(3, 15); this.labelContentLengthText.Name = "labelContentLengthText"; - this.labelContentLengthText.Size = new System.Drawing.Size(90, 15); + this.labelContentLengthText.Size = new System.Drawing.Size(89, 15); this.labelContentLengthText.TabIndex = 2; this.labelContentLengthText.Text = "Content length:"; this.labelContentLengthText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.toolTip.SetToolTip(this.labelContentLengthText, "Show the content length"); this.labelContentLengthText.Enter += new System.EventHandler(this.LabelContentLengthText_Enter); this.labelContentLengthText.Leave += new System.EventHandler(this.LabelContentLengthText_Leave); this.labelContentLengthText.MouseEnter += new System.EventHandler(this.LabelContentLengthText_Enter); // // labelModifiedDateText // + this.labelModifiedDateText.AccessibleDescription = "Show the modified date"; + this.labelModifiedDateText.AccessibleName = "Modified date"; + this.labelModifiedDateText.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelModifiedDateText.AutoSize = true; this.labelModifiedDateText.Dock = System.Windows.Forms.DockStyle.Left; + this.labelModifiedDateText.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold); this.labelModifiedDateText.Location = new System.Drawing.Point(3, 30); this.labelModifiedDateText.Name = "labelModifiedDateText"; this.labelModifiedDateText.Size = new System.Drawing.Size(84, 15); this.labelModifiedDateText.TabIndex = 5; this.labelModifiedDateText.Text = "Modified date:"; this.labelModifiedDateText.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.toolTip.SetToolTip(this.labelModifiedDateText, "Show the modified date"); this.labelModifiedDateText.Enter += new System.EventHandler(this.LabelModifiedDateText_Enter); this.labelModifiedDateText.Leave += new System.EventHandler(this.LabelModifiedDateText_Leave); this.labelModifiedDateText.MouseEnter += new System.EventHandler(this.LabelModifiedDateText_Enter); @@ -207,6 +173,9 @@ private void InitializeComponent() // // labelContentLengthValueLocal // + this.labelContentLengthValueLocal.AccessibleDescription = "Show the content length"; + this.labelContentLengthValueLocal.AccessibleName = "Local content length"; + this.labelContentLengthValueLocal.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelContentLengthValueLocal.AutoSize = true; this.labelContentLengthValueLocal.Dock = System.Windows.Forms.DockStyle.Fill; this.labelContentLengthValueLocal.Location = new System.Drawing.Point(142, 15); @@ -215,6 +184,7 @@ private void InitializeComponent() this.labelContentLengthValueLocal.TabIndex = 3; this.labelContentLengthValueLocal.Text = "123456789 bytes"; this.labelContentLengthValueLocal.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.toolTip.SetToolTip(this.labelContentLengthValueLocal, "Show the content length"); this.labelContentLengthValueLocal.Enter += new System.EventHandler(this.LabelContentLengthValueLocal_Enter); this.labelContentLengthValueLocal.Leave += new System.EventHandler(this.LabelContentLengthValueLocal_Leave); this.labelContentLengthValueLocal.MouseEnter += new System.EventHandler(this.LabelContentLengthValueLocal_Enter); @@ -222,6 +192,9 @@ private void InitializeComponent() // // labelModifiedDateValueLocal // + this.labelModifiedDateValueLocal.AccessibleDescription = "Show the local modified date"; + this.labelModifiedDateValueLocal.AccessibleName = "Local modified date"; + this.labelModifiedDateValueLocal.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelModifiedDateValueLocal.AutoSize = true; this.labelModifiedDateValueLocal.Dock = System.Windows.Forms.DockStyle.Fill; this.labelModifiedDateValueLocal.Location = new System.Drawing.Point(142, 30); @@ -230,6 +203,7 @@ private void InitializeComponent() this.labelModifiedDateValueLocal.TabIndex = 6; this.labelModifiedDateValueLocal.Text = "00.00.0000 00:00"; this.labelModifiedDateValueLocal.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.toolTip.SetToolTip(this.labelModifiedDateValueLocal, "Show the local modified date"); this.labelModifiedDateValueLocal.Enter += new System.EventHandler(this.LabelModifiedDateValueLocal_Enter); this.labelModifiedDateValueLocal.Leave += new System.EventHandler(this.LabelModifiedDateValueLocal_Leave); this.labelModifiedDateValueLocal.MouseEnter += new System.EventHandler(this.LabelModifiedDateValueLocal_Enter); @@ -237,6 +211,9 @@ private void InitializeComponent() // // labelContentLengthValueOnline // + this.labelContentLengthValueOnline.AccessibleDescription = "Show the online content length"; + this.labelContentLengthValueOnline.AccessibleName = "Online content length"; + this.labelContentLengthValueOnline.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelContentLengthValueOnline.AutoSize = true; this.labelContentLengthValueOnline.Dock = System.Windows.Forms.DockStyle.Fill; this.labelContentLengthValueOnline.Location = new System.Drawing.Point(282, 15); @@ -245,6 +222,7 @@ private void InitializeComponent() this.labelContentLengthValueOnline.TabIndex = 4; this.labelContentLengthValueOnline.Text = "123456789 bytes"; this.labelContentLengthValueOnline.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.toolTip.SetToolTip(this.labelContentLengthValueOnline, "Show the online content length"); this.labelContentLengthValueOnline.Enter += new System.EventHandler(this.LabelContentLengthValueOnline_Enter); this.labelContentLengthValueOnline.Leave += new System.EventHandler(this.LabelContentLengthValueOnline_Leave); this.labelContentLengthValueOnline.MouseEnter += new System.EventHandler(this.LabelContentLengthValueOnline_Enter); @@ -252,6 +230,9 @@ private void InitializeComponent() // // labelModifiedDateValueOnline // + this.labelModifiedDateValueOnline.AccessibleDescription = "Show the online modified date"; + this.labelModifiedDateValueOnline.AccessibleName = "Online Modified date"; + this.labelModifiedDateValueOnline.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelModifiedDateValueOnline.AutoSize = true; this.labelModifiedDateValueOnline.Dock = System.Windows.Forms.DockStyle.Fill; this.labelModifiedDateValueOnline.Location = new System.Drawing.Point(282, 30); @@ -260,19 +241,76 @@ private void InitializeComponent() this.labelModifiedDateValueOnline.TabIndex = 7; this.labelModifiedDateValueOnline.Text = "00.00.0000 00:00"; this.labelModifiedDateValueOnline.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.toolTip.SetToolTip(this.labelModifiedDateValueOnline, "Show the online modified date"); this.labelModifiedDateValueOnline.Enter += new System.EventHandler(this.LabelModifiedDateValueOnline_Enter); this.labelModifiedDateValueOnline.Leave += new System.EventHandler(this.LabelModifiedDateValueOnline_Leave); this.labelModifiedDateValueOnline.MouseEnter += new System.EventHandler(this.LabelModifiedDateValueOnline_Enter); this.labelModifiedDateValueOnline.MouseLeave += new System.EventHandler(this.LabelModifiedDateValueOnline_Leave); // + // statusStrip + // + this.statusStrip.AccessibleDescription = "Show the status"; + this.statusStrip.AccessibleName = "Status bar"; + this.statusStrip.AccessibleRole = System.Windows.Forms.AccessibleRole.StatusBar; + this.statusStrip.GripStyle = System.Windows.Forms.ToolStripGripStyle.Visible; + this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.labelHelp}); + this.statusStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow; + this.statusStrip.Location = new System.Drawing.Point(0, 124); + this.statusStrip.Name = "statusStrip"; + this.statusStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode; + this.statusStrip.ShowItemToolTips = true; + this.statusStrip.Size = new System.Drawing.Size(444, 21); + this.statusStrip.SizingGrip = false; + this.statusStrip.TabIndex = 2; + this.statusStrip.TabStop = true; + this.statusStrip.Text = "statusStrip"; + // + // labelHelp + // + this.labelHelp.AccessibleDescription = "Show some important informations"; + this.labelHelp.AccessibleName = "Information field"; + this.labelHelp.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; + this.labelHelp.Image = global::Planetoid_DB.Properties.Resources.silk_lightbulb; + this.labelHelp.Margin = new System.Windows.Forms.Padding(10, 3, 0, 2); + this.labelHelp.Name = "labelHelp"; + this.labelHelp.Size = new System.Drawing.Size(170, 16); + this.labelHelp.Text = "Show informative messages"; + this.labelHelp.ToolTipText = "Show informative messages"; + // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.ColumnCount = 3; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33334F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33334F)); + this.tableLayoutPanel1.Controls.Add(this.labelIsUpdateNeeded, 1, 3); + this.tableLayoutPanel1.Controls.Add(this.labelMpcorbDatLocal, 1, 0); + this.tableLayoutPanel1.Controls.Add(this.labelMpcorbDatOnline, 2, 0); + this.tableLayoutPanel1.Controls.Add(this.labelContentLengthText, 0, 1); + this.tableLayoutPanel1.Controls.Add(this.labelModifiedDateText, 0, 2); + this.tableLayoutPanel1.Controls.Add(this.labelContentLengthValueLocal, 1, 1); + this.tableLayoutPanel1.Controls.Add(this.labelModifiedDateValueLocal, 1, 2); + this.tableLayoutPanel1.Controls.Add(this.labelContentLengthValueOnline, 2, 1); + this.tableLayoutPanel1.Controls.Add(this.labelModifiedDateValueOnline, 2, 2); + this.tableLayoutPanel1.Location = new System.Drawing.Point(12, 12); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 4; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(420, 68); + this.tableLayoutPanel1.TabIndex = 0; + // // CheckMpcorbDatForm // this.AccessibleDescription = "Show the informations about the MPCORB.DAT database local and online"; - this.AccessibleName = "MPCORB.DAT comparator"; + this.AccessibleName = "Check MPCORB.DAT"; this.AccessibleRole = System.Windows.Forms.AccessibleRole.Dialog; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(444, 139); + this.ClientSize = new System.Drawing.Size(444, 145); this.Controls.Add(this.tableLayoutPanel1); this.Controls.Add(this.buttonOK); this.Controls.Add(this.statusStrip); @@ -281,7 +319,7 @@ private void InitializeComponent() this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "CheckMpcorbDatForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "MPCORB.DAT comparator"; + this.Text = "Check MPCORB.DAT"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.CheckMpcorbDatForm_FormClosed); this.Load += new System.EventHandler(this.CheckMpcorbDatForm_Load); this.statusStrip.ResumeLayout(false); diff --git a/PlanetoidDB/CheckMpcorbDatForm.cs b/PlanetoidDB/CheckMpcorbDatForm.cs index 3d02274b..375a0c47 100644 --- a/PlanetoidDB/CheckMpcorbDatForm.cs +++ b/PlanetoidDB/CheckMpcorbDatForm.cs @@ -1,4 +1,6 @@ using System; +using System.IO; +using System.Net; using System.Windows.Forms; namespace Planetoid_DB @@ -22,7 +24,25 @@ public partial class CheckMpcorbDatForm : Form /// private void CheckMpcorbDatForm_Load(object sender, EventArgs e) { - + Uri uriMPCORB = new Uri(uriString: Properties.Resources.strMpcorbUrl); + DateTime + datetimeFileLocal = DateTime.MinValue, + datetimeFileOnline = GetLastModified(uri: uriMPCORB); + if (!File.Exists(path: Properties.Resources.strFilenameMPCORB)) + { + labelContentLengthValueLocal.Text = I10nStrings.strNoFileFoundText; + labelModifiedDateValueLocal.Text = I10nStrings.strNoFileFoundText; + } + else + { + FileInfo fileInfo = new FileInfo(fileName: Properties.Resources.strFilenameMPCORB); + datetimeFileLocal = fileInfo.LastWriteTime; + labelContentLengthValueLocal.Text = fileInfo.Length.ToString() + " " + I10nStrings.strBytesText; + labelModifiedDateValueLocal.Text = datetimeFileLocal.ToString(); + } + labelContentLengthValueOnline.Text = GetContentLength(uri: uriMPCORB).ToString() + " " + I10nStrings.strBytesText; + labelModifiedDateValueOnline.Text = datetimeFileOnline.ToString(); + labelIsUpdateNeeded.Text = datetimeFileOnline > datetimeFileLocal ? I10nStrings.strUpdateRecommendedText : I10nStrings.strNoUpdateNeededText; } /// @@ -63,6 +83,32 @@ private void SetLabelText(string text) labelHelp.Text = text; } + /// + /// + /// + /// + /// + private DateTime GetLastModified(Uri uri) + { + HttpWebRequest req = (HttpWebRequest)WebRequest.Create(requestUri: uri); + HttpWebResponse resp = (HttpWebResponse)req.GetResponse(); + resp.Close(); + return resp.LastModified; + } + + /// + /// + /// + /// + /// + private long GetContentLength(Uri uri) + { + HttpWebRequest req = (HttpWebRequest)WebRequest.Create(requestUri: uri); + HttpWebResponse resp = (HttpWebResponse)req.GetResponse(); + resp.Close(); + return Convert.ToInt64(value: resp.ContentLength); + } + #endregion #region Click-Eventhandler diff --git a/PlanetoidDB/DatabaseInformationForm.Designer.cs b/PlanetoidDB/DatabaseInformationForm.Designer.cs index d93f0e72..47858610 100644 --- a/PlanetoidDB/DatabaseInformationForm.Designer.cs +++ b/PlanetoidDB/DatabaseInformationForm.Designer.cs @@ -63,7 +63,7 @@ private void InitializeComponent() this.buttonOK.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonOK.Font = new System.Drawing.Font("Segoe UI", 8.5F); this.buttonOK.Image = global::Planetoid_DB.Properties.Resources.silk_tick; - this.buttonOK.Location = new System.Drawing.Point(185, 177); + this.buttonOK.Location = new System.Drawing.Point(185, 131); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(75, 23); this.buttonOK.TabIndex = 0; @@ -121,7 +121,7 @@ private void InitializeComponent() this.labelDirectory.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelDirectory.AutoSize = true; this.labelDirectory.Font = new System.Drawing.Font("Segoe UI", 8.5F); - this.labelDirectory.Location = new System.Drawing.Point(3, 21); + this.labelDirectory.Location = new System.Drawing.Point(3, 15); this.labelDirectory.Name = "labelDirectory"; this.labelDirectory.Size = new System.Drawing.Size(55, 15); this.labelDirectory.TabIndex = 2; @@ -139,7 +139,7 @@ private void InitializeComponent() this.labelSize.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelSize.AutoSize = true; this.labelSize.Font = new System.Drawing.Font("Segoe UI", 8.5F); - this.labelSize.Location = new System.Drawing.Point(3, 42); + this.labelSize.Location = new System.Drawing.Point(3, 30); this.labelSize.Name = "labelSize"; this.labelSize.Size = new System.Drawing.Size(27, 15); this.labelSize.TabIndex = 4; @@ -156,7 +156,7 @@ private void InitializeComponent() this.labelDateCreated.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelDateCreated.AutoSize = true; this.labelDateCreated.Font = new System.Drawing.Font("Segoe UI", 8.5F); - this.labelDateCreated.Location = new System.Drawing.Point(3, 63); + this.labelDateCreated.Location = new System.Drawing.Point(3, 45); this.labelDateCreated.Name = "labelDateCreated"; this.labelDateCreated.Size = new System.Drawing.Size(78, 15); this.labelDateCreated.TabIndex = 6; @@ -175,7 +175,7 @@ private void InitializeComponent() this.labelDateAccessed.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelDateAccessed.AutoSize = true; this.labelDateAccessed.Font = new System.Drawing.Font("Segoe UI", 8.5F); - this.labelDateAccessed.Location = new System.Drawing.Point(3, 84); + this.labelDateAccessed.Location = new System.Drawing.Point(3, 60); this.labelDateAccessed.Name = "labelDateAccessed"; this.labelDateAccessed.Size = new System.Drawing.Size(91, 15); this.labelDateAccessed.TabIndex = 8; @@ -194,7 +194,7 @@ private void InitializeComponent() this.labelDateWrited.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelDateWrited.AutoSize = true; this.labelDateWrited.Font = new System.Drawing.Font("Segoe UI", 8.5F); - this.labelDateWrited.Location = new System.Drawing.Point(3, 105); + this.labelDateWrited.Location = new System.Drawing.Point(3, 75); this.labelDateWrited.Name = "labelDateWrited"; this.labelDateWrited.Size = new System.Drawing.Size(83, 15); this.labelDateWrited.TabIndex = 10; @@ -213,7 +213,7 @@ private void InitializeComponent() this.labelAttributes.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelAttributes.AutoSize = true; this.labelAttributes.Font = new System.Drawing.Font("Segoe UI", 8.5F); - this.labelAttributes.Location = new System.Drawing.Point(3, 126); + this.labelAttributes.Location = new System.Drawing.Point(3, 90); this.labelAttributes.Name = "labelAttributes"; this.labelAttributes.Size = new System.Drawing.Size(59, 15); this.labelAttributes.TabIndex = 12; @@ -237,7 +237,7 @@ private void InitializeComponent() this.labelNameValue.Size = new System.Drawing.Size(16, 15); this.labelNameValue.TabIndex = 1; this.labelNameValue.Text = "..."; - this.toolTip.SetToolTip(this.labelNameValue, "Name"); + this.toolTip.SetToolTip(this.labelNameValue, "Show the name of the database"); this.labelNameValue.DoubleClick += new System.EventHandler(this.LabelNameValue_DoubleClick); this.labelNameValue.Enter += new System.EventHandler(this.LabelNameValue_Enter); this.labelNameValue.Leave += new System.EventHandler(this.LabelNameValue_Leave); @@ -251,12 +251,12 @@ private void InitializeComponent() this.labelDirectoryValue.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelDirectoryValue.AutoSize = true; this.labelDirectoryValue.Font = new System.Drawing.Font("Segoe UI", 8.5F); - this.labelDirectoryValue.Location = new System.Drawing.Point(100, 21); + this.labelDirectoryValue.Location = new System.Drawing.Point(100, 15); this.labelDirectoryValue.Name = "labelDirectoryValue"; this.labelDirectoryValue.Size = new System.Drawing.Size(16, 15); this.labelDirectoryValue.TabIndex = 3; this.labelDirectoryValue.Text = "..."; - this.toolTip.SetToolTip(this.labelDirectoryValue, "Directory"); + this.toolTip.SetToolTip(this.labelDirectoryValue, "Show the directory of the database"); this.labelDirectoryValue.DoubleClick += new System.EventHandler(this.LabelDirectoryValue_DoubleClick); this.labelDirectoryValue.Enter += new System.EventHandler(this.LabelDirectoryValue_Enter); this.labelDirectoryValue.Leave += new System.EventHandler(this.LabelDirectoryValue_Leave); @@ -270,12 +270,12 @@ private void InitializeComponent() this.labelSizeValue.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelSizeValue.AutoSize = true; this.labelSizeValue.Font = new System.Drawing.Font("Segoe UI", 8.5F); - this.labelSizeValue.Location = new System.Drawing.Point(100, 42); + this.labelSizeValue.Location = new System.Drawing.Point(100, 30); this.labelSizeValue.Name = "labelSizeValue"; this.labelSizeValue.Size = new System.Drawing.Size(16, 15); this.labelSizeValue.TabIndex = 5; this.labelSizeValue.Text = "..."; - this.toolTip.SetToolTip(this.labelSizeValue, "Size"); + this.toolTip.SetToolTip(this.labelSizeValue, "Show the size of the database"); this.labelSizeValue.DoubleClick += new System.EventHandler(this.LabelSizeValue_DoubleClick); this.labelSizeValue.Enter += new System.EventHandler(this.LabelSizeValue_Enter); this.labelSizeValue.Leave += new System.EventHandler(this.LabelSizeValue_Leave); @@ -289,12 +289,12 @@ private void InitializeComponent() this.labelDateCreatedValue.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelDateCreatedValue.AutoSize = true; this.labelDateCreatedValue.Font = new System.Drawing.Font("Segoe UI", 8.5F); - this.labelDateCreatedValue.Location = new System.Drawing.Point(100, 63); + this.labelDateCreatedValue.Location = new System.Drawing.Point(100, 45); this.labelDateCreatedValue.Name = "labelDateCreatedValue"; this.labelDateCreatedValue.Size = new System.Drawing.Size(16, 15); this.labelDateCreatedValue.TabIndex = 7; this.labelDateCreatedValue.Text = "..."; - this.toolTip.SetToolTip(this.labelDateCreatedValue, "Creation date"); + this.toolTip.SetToolTip(this.labelDateCreatedValue, "Show the creation date of the database"); this.labelDateCreatedValue.DoubleClick += new System.EventHandler(this.LabelDateCreatedValue_DoubleClick); this.labelDateCreatedValue.Enter += new System.EventHandler(this.LabelDateCreatedValue_Enter); this.labelDateCreatedValue.Leave += new System.EventHandler(this.LabelDateCreatedValue_Leave); @@ -308,12 +308,12 @@ private void InitializeComponent() this.labelDateAccessedValue.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelDateAccessedValue.AutoSize = true; this.labelDateAccessedValue.Font = new System.Drawing.Font("Segoe UI", 8.5F); - this.labelDateAccessedValue.Location = new System.Drawing.Point(100, 84); + this.labelDateAccessedValue.Location = new System.Drawing.Point(100, 60); this.labelDateAccessedValue.Name = "labelDateAccessedValue"; this.labelDateAccessedValue.Size = new System.Drawing.Size(16, 15); this.labelDateAccessedValue.TabIndex = 9; this.labelDateAccessedValue.Text = "..."; - this.toolTip.SetToolTip(this.labelDateAccessedValue, "Last access date"); + this.toolTip.SetToolTip(this.labelDateAccessedValue, "Show the last access date of the database"); this.labelDateAccessedValue.DoubleClick += new System.EventHandler(this.LabelDateAccessedValue_DoubleClick); this.labelDateAccessedValue.Enter += new System.EventHandler(this.LabelDateAccessedValue_Enter); this.labelDateAccessedValue.Leave += new System.EventHandler(this.LabelDateAccessedValue_Leave); @@ -327,12 +327,12 @@ private void InitializeComponent() this.labelDateWritedValue.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelDateWritedValue.AutoSize = true; this.labelDateWritedValue.Font = new System.Drawing.Font("Segoe UI", 8.5F); - this.labelDateWritedValue.Location = new System.Drawing.Point(100, 105); + this.labelDateWritedValue.Location = new System.Drawing.Point(100, 75); this.labelDateWritedValue.Name = "labelDateWritedValue"; this.labelDateWritedValue.Size = new System.Drawing.Size(16, 15); this.labelDateWritedValue.TabIndex = 11; this.labelDateWritedValue.Text = "..."; - this.toolTip.SetToolTip(this.labelDateWritedValue, "Last write date"); + this.toolTip.SetToolTip(this.labelDateWritedValue, "Show the last write date of the database"); this.labelDateWritedValue.DoubleClick += new System.EventHandler(this.LabelDateWritedValue_DoubleClick); this.labelDateWritedValue.Enter += new System.EventHandler(this.LabelDateWritedValue_Enter); this.labelDateWritedValue.Leave += new System.EventHandler(this.LabelDateWritedValue_Leave); @@ -346,12 +346,12 @@ private void InitializeComponent() this.labelAttributesValue.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.labelAttributesValue.AutoSize = true; this.labelAttributesValue.Font = new System.Drawing.Font("Segoe UI", 8.5F); - this.labelAttributesValue.Location = new System.Drawing.Point(100, 126); + this.labelAttributesValue.Location = new System.Drawing.Point(100, 90); this.labelAttributesValue.Name = "labelAttributesValue"; this.labelAttributesValue.Size = new System.Drawing.Size(16, 15); this.labelAttributesValue.TabIndex = 13; this.labelAttributesValue.Text = "..."; - this.toolTip.SetToolTip(this.labelAttributesValue, "Attributes"); + this.toolTip.SetToolTip(this.labelAttributesValue, "Show the attributes of the database"); this.labelAttributesValue.DoubleClick += new System.EventHandler(this.LabelAttributesValue_DoubleClick); this.labelAttributesValue.Enter += new System.EventHandler(this.LabelAttributesValue_Enter); this.labelAttributesValue.Leave += new System.EventHandler(this.LabelAttributesValue_Leave); @@ -383,14 +383,14 @@ private void InitializeComponent() this.tableLayoutPanel.Location = new System.Drawing.Point(35, 13); this.tableLayoutPanel.Name = "tableLayoutPanel"; this.tableLayoutPanel.RowCount = 7; - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F)); - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F)); - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F)); - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F)); - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F)); - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F)); - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F)); - this.tableLayoutPanel.Size = new System.Drawing.Size(379, 151); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel.Size = new System.Drawing.Size(379, 110); this.tableLayoutPanel.TabIndex = 2; // // statusStrip @@ -402,7 +402,7 @@ private void InitializeComponent() this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.labelHelp}); this.statusStrip.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow; - this.statusStrip.Location = new System.Drawing.Point(0, 210); + this.statusStrip.Location = new System.Drawing.Point(0, 164); this.statusStrip.Name = "statusStrip"; this.statusStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode; this.statusStrip.ShowItemToolTips = true; @@ -431,7 +431,7 @@ private void InitializeComponent() this.AccessibleRole = System.Windows.Forms.AccessibleRole.Dialog; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(444, 231); + this.ClientSize = new System.Drawing.Size(444, 185); this.Controls.Add(this.statusStrip); this.Controls.Add(this.tableLayoutPanel); this.Controls.Add(this.pictureBoxInformation); diff --git a/PlanetoidDB/DownloadUpdateForm.cs b/PlanetoidDB/DownloadUpdateForm.cs index 11f40bf9..4766e2d2 100644 --- a/PlanetoidDB/DownloadUpdateForm.cs +++ b/PlanetoidDB/DownloadUpdateForm.cs @@ -2,6 +2,7 @@ using System.ComponentModel; using System.IO; using System.Net; +using System.Net.NetworkInformation; using System.Windows.Forms; namespace Planetoid_DB @@ -46,7 +47,12 @@ private void DownloadUpdateForm_Load(object sender, EventArgs e) /// /// /// - private void DownloadUpdateForm_FormClosed(object sender, FormClosedEventArgs e) => this.Dispose(); + private void DownloadUpdateForm_FormClosed(object sender, FormClosedEventArgs e) + { + webClient.CancelAsync(); + webClient.Dispose(); + this.Dispose(); + } /// /// @@ -99,49 +105,6 @@ private void Completed(object sender, AsyncCompletedEventArgs e) } } - /// - /// - /// - private void CheckMpcorbDat() - { - DateTime datetimeFileLocal = DateTime.MinValue; - DateTime datetimeFileOnline = GetLastModified(uri: uriMPCORB); - string strInfoMpcorbDatLocal = I10nStrings.strInfoMpcorbDatLocal + ":\n\r\n\r"; - if (File.Exists(path: strFilenameMPCORB)) - { - FileInfo fileInfo = new FileInfo(fileName: strFilenameMPCORB); - long fileSize = fileInfo.Length; - datetimeFileLocal = fileInfo.LastWriteTime; - datetimeFileOnline = GetLastModified(uri: uriMPCORB); - strInfoMpcorbDatLocal = strInfoMpcorbDatLocal + " " + I10nStrings.strUrlText + ": " + fileInfo.FullName; - strInfoMpcorbDatLocal = strInfoMpcorbDatLocal + "\n\r " + I10nStrings.strContenLenghtText + ": " + fileSize.ToString() + " " + I10nStrings.strBytesText; - strInfoMpcorbDatLocal = strInfoMpcorbDatLocal + "\n\r " + I10nStrings.strLastModifiedText + ": " + datetimeFileLocal; - } - else - { - strInfoMpcorbDatLocal = strInfoMpcorbDatLocal + " " + I10nStrings.strNoFileFoundText; - } - - string strInfoMpcorbDatOnline = I10nStrings.strInfoMpcorbDatOnline + ":\n\r\n\r"; - strInfoMpcorbDatOnline = strInfoMpcorbDatOnline + " " + I10nStrings.strUrlText + ": " + uriMPCORB; - strInfoMpcorbDatOnline = strInfoMpcorbDatOnline + "\n\r " + I10nStrings.strContenLenghtText + ": " + GetContentLength(uri: uriMPCORB).ToString() + " " + I10nStrings.strBytesText; - strInfoMpcorbDatOnline = strInfoMpcorbDatOnline + "\n\r " + I10nStrings.strLastModifiedText + ": " + datetimeFileOnline; - - string strUpdate = ""; - MessageBoxIcon mbi = MessageBoxIcon.None; - if (datetimeFileOnline > datetimeFileLocal) - { - strUpdate = I10nStrings.strUpdateAvailabletText; - mbi = MessageBoxIcon.Warning; - } - else - { - strUpdate = I10nStrings.strNoUpdateNeededText; - mbi = MessageBoxIcon.Information; - } - MessageBox.Show(text: strInfoMpcorbDatLocal + "\n\r\n\r" + strInfoMpcorbDatOnline + "\n\r\n\r" + strUpdate, caption: I10nStrings.strMpcorbDatInformationCaption, buttons: MessageBoxButtons.OK, icon: mbi); - } - /// /// /// @@ -195,6 +158,22 @@ private void SetLabelText(string text) labelHelp.Text = text; } + /// + /// + /// + private void ShowMpcorbDatCheck() + { + if (!NetworkInterface.GetIsNetworkAvailable()) + { + MessageBox.Show(text: I10nStrings.strNoInternetConnectionText, caption: I10nStrings.strErrorCaption, buttons: MessageBoxButtons.OK, icon: MessageBoxIcon.Error); + } + else + { + CheckMpcorbDatForm formCeckMpcorbDat = new CheckMpcorbDatForm(); + formCeckMpcorbDat.ShowDialog(); + } + } + #region Enter-Eventhandler /// @@ -453,7 +432,7 @@ private void DownloadUpdateForm_FormClosing(object sender, FormClosingEventArgs /// /// /// - private void ButtonCheckForUpdate_Click(object sender, EventArgs e) => CheckMpcorbDat(); + private void ButtonCheckForUpdate_Click(object sender, EventArgs e) => ShowMpcorbDatCheck(); #endregion diff --git a/PlanetoidDB/I10nStrings.Designer.cs b/PlanetoidDB/I10nStrings.Designer.cs index 9192951c..008326f4 100644 --- a/PlanetoidDB/I10nStrings.Designer.cs +++ b/PlanetoidDB/I10nStrings.Designer.cs @@ -96,15 +96,6 @@ internal static string strCompleteCaption { } } - /// - /// Sucht eine lokalisierte Zeichenfolge, die Content length ähnelt. - /// - internal static string strContenLenghtText { - get { - return ResourceManager.GetString("strContenLenghtText", resourceCulture); - } - } - /// /// Sucht eine lokalisierte Zeichenfolge, die Copied to clipboard. ähnelt. /// @@ -177,24 +168,6 @@ internal static string strIndex { } } - /// - /// Sucht eine lokalisierte Zeichenfolge, die MPCORB.DAT local ähnelt. - /// - internal static string strInfoMpcorbDatLocal { - get { - return ResourceManager.GetString("strInfoMpcorbDatLocal", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die MPCORB.DAT online ähnelt. - /// - internal static string strInfoMpcorbDatOnline { - get { - return ResourceManager.GetString("strInfoMpcorbDatOnline", resourceCulture); - } - } - /// /// Sucht eine lokalisierte Zeichenfolge, die Information ähnelt. /// @@ -204,15 +177,6 @@ internal static string strInformationCaption { } } - /// - /// Sucht eine lokalisierte Zeichenfolge, die Last modified ähnelt. - /// - internal static string strLastModifiedText { - get { - return ResourceManager.GetString("strLastModifiedText", resourceCulture); - } - } - /// /// Sucht eine lokalisierte Zeichenfolge, die MPCORB.DAT infomation ähnelt. /// @@ -252,9 +216,9 @@ internal static string strNoFileFoundText { /// /// Sucht eine lokalisierte Zeichenfolge, die No internet connection available! ähnelt. /// - internal static string StrNoInternetConnectionText { + internal static string strNoInternetConnectionText { get { - return ResourceManager.GetString("StrNoInternetConnectionText", resourceCulture); + return ResourceManager.GetString("strNoInternetConnectionText", resourceCulture); } } @@ -349,20 +313,11 @@ internal static string strStatusUnknownError { } /// - /// Sucht eine lokalisierte Zeichenfolge, die Update available! ähnelt. - /// - internal static string strUpdateAvailabletText { - get { - return ResourceManager.GetString("strUpdateAvailabletText", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die URL ähnelt. + /// Sucht eine lokalisierte Zeichenfolge, die Update recommended ähnelt. /// - internal static string strUrlText { + internal static string strUpdateRecommendedText { get { - return ResourceManager.GetString("strUrlText", resourceCulture); + return ResourceManager.GetString("strUpdateRecommendedText", resourceCulture); } } diff --git a/PlanetoidDB/I10nStrings.resx b/PlanetoidDB/I10nStrings.resx index 7b9d97c0..7ebb088c 100644 --- a/PlanetoidDB/I10nStrings.resx +++ b/PlanetoidDB/I10nStrings.resx @@ -138,7 +138,7 @@ The file MPCORB.DAT was not found. You need it to run the application. The file has a size of about 150-200 MB. Do you want to download the MPCORB.DAT file from the MPC website? - + No internet connection available! @@ -147,30 +147,15 @@ WWW - - Content length - - - MPCORB.DAT local - - - Last modified - no file found - - URL - Complete Download completed! - - MPCORB.DAT online - MPCORB.DAT infomation @@ -204,8 +189,8 @@ Unknown error... - - Update available! + + Update recommended Do you want download the lastest MPCORB.DAT file? diff --git a/PlanetoidDB/Planetoid-DB.csproj b/PlanetoidDB/Planetoid-DB.csproj index 3c520a3e..79c01638 100644 --- a/PlanetoidDB/Planetoid-DB.csproj +++ b/PlanetoidDB/Planetoid-DB.csproj @@ -207,6 +207,7 @@ + @@ -242,7 +243,6 @@ - @@ -331,6 +331,7 @@ false +