From 73a1406bc1a8601196ace43bea56313d92c35485 Mon Sep 17 00:00:00 2001 From: Michael Johne Date: Sat, 2 Nov 2019 22:58:27 +0100 Subject: [PATCH] Add files via upload --- PlanetoidDB/Planetoid-DB.csproj | 1 + PlanetoidDB/PlanetoidDBForm.Designer.cs | 68 +++++-- PlanetoidDB/PlanetoidDBForm.cs | 36 ++++ PlanetoidDB/Properties/Resources.Designer.cs | 10 + PlanetoidDB/Properties/Resources.resx | 189 ++++++++++--------- PlanetoidDB/TerminologyForm.cs | 10 +- 6 files changed, 194 insertions(+), 120 deletions(-) diff --git a/PlanetoidDB/Planetoid-DB.csproj b/PlanetoidDB/Planetoid-DB.csproj index 34fb89fd..19393db2 100644 --- a/PlanetoidDB/Planetoid-DB.csproj +++ b/PlanetoidDB/Planetoid-DB.csproj @@ -259,6 +259,7 @@ + diff --git a/PlanetoidDB/PlanetoidDBForm.Designer.cs b/PlanetoidDB/PlanetoidDBForm.Designer.cs index 334466e9..c5a3a13f 100644 --- a/PlanetoidDB/PlanetoidDBForm.Designer.cs +++ b/PlanetoidDB/PlanetoidDBForm.Designer.cs @@ -39,10 +39,10 @@ private void InitializeComponent() this.toolStripMenuItem1000 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem10000 = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem100000 = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSplitButtonStepBackward = new System.Windows.Forms.ToolStripSplitButton(); this.toolStripMenuItemNavigateSomeDataBackward = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemNavigateSomeDataForward = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSplitButtonStepForward = new System.Windows.Forms.ToolStripSplitButton(); + this.toolStripSplitButtonStepBackward = new System.Windows.Forms.ToolStripSplitButton(); this.tableLayoutPanelData = new System.Windows.Forms.TableLayoutPanel(); this.linkLabelObsLastDate = new System.Windows.Forms.LinkLabel(); this.linkLabelFlags = new System.Windows.Forms.LinkLabel(); @@ -118,6 +118,8 @@ private void InitializeComponent() this.menuitemOptions = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItemSettings = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparatorOptions = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripMenuItemFilter = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparatorOptions9 = new System.Windows.Forms.ToolStripSeparator(); this.menuitemCheckMpcorbDat = new System.Windows.Forms.ToolStripMenuItem(); this.menuitemDownloadMpcorbDat = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparatorOptions3 = new System.Windows.Forms.ToolStripSeparator(); @@ -202,7 +204,7 @@ private void InitializeComponent() this.toolStripMenuItem10000, this.toolStripMenuItem100000}); this.contextMenuNavigationStep.Name = "contextMenu"; - this.contextMenuNavigationStep.OwnerItem = this.toolStripSplitButtonStepForward; + this.contextMenuNavigationStep.OwnerItem = this.toolStripSplitButtonStepBackward; this.contextMenuNavigationStep.ShowCheckMargin = true; this.contextMenuNavigationStep.ShowImageMargin = false; this.contextMenuNavigationStep.Size = new System.Drawing.Size(111, 114); @@ -284,22 +286,6 @@ private void InitializeComponent() this.toolStripMenuItem100000.MouseEnter += new System.EventHandler(this.SetStatusbar_Enter); this.toolStripMenuItem100000.MouseLeave += new System.EventHandler(this.ClearStatusbar_Leave); // - // toolStripSplitButtonStepBackward - // - this.toolStripSplitButtonStepBackward.AccessibleDescription = "Navigate some data backward"; - this.toolStripSplitButtonStepBackward.AccessibleName = "Navigate some data backward"; - this.toolStripSplitButtonStepBackward.AccessibleRole = System.Windows.Forms.AccessibleRole.SplitButton; - this.toolStripSplitButtonStepBackward.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.toolStripSplitButtonStepBackward.DropDown = this.contextMenuNavigationStep; - this.toolStripSplitButtonStepBackward.Image = global::Planetoid_DB.Properties.Resources.silk_backward_green; - this.toolStripSplitButtonStepBackward.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripSplitButtonStepBackward.Name = "toolStripSplitButtonStepBackward"; - this.toolStripSplitButtonStepBackward.Size = new System.Drawing.Size(32, 22); - this.toolStripSplitButtonStepBackward.Text = "Navigate some data backward"; - this.toolStripSplitButtonStepBackward.ButtonClick += new System.EventHandler(this.ToolStripButtonStepBackward_Click); - this.toolStripSplitButtonStepBackward.MouseEnter += new System.EventHandler(this.SetStatusbar_Enter); - this.toolStripSplitButtonStepBackward.MouseLeave += new System.EventHandler(this.ClearStatusbar_Leave); - // // toolStripMenuItemNavigateSomeDataBackward // this.toolStripMenuItemNavigateSomeDataBackward.AccessibleDescription = "Navigate some data backward"; @@ -350,6 +336,22 @@ private void InitializeComponent() this.toolStripSplitButtonStepForward.MouseEnter += new System.EventHandler(this.SetStatusbar_Enter); this.toolStripSplitButtonStepForward.MouseLeave += new System.EventHandler(this.ClearStatusbar_Leave); // + // toolStripSplitButtonStepBackward + // + this.toolStripSplitButtonStepBackward.AccessibleDescription = "Navigate some data backward"; + this.toolStripSplitButtonStepBackward.AccessibleName = "Navigate some data backward"; + this.toolStripSplitButtonStepBackward.AccessibleRole = System.Windows.Forms.AccessibleRole.SplitButton; + this.toolStripSplitButtonStepBackward.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.toolStripSplitButtonStepBackward.DropDown = this.contextMenuNavigationStep; + this.toolStripSplitButtonStepBackward.Image = global::Planetoid_DB.Properties.Resources.silk_backward_green; + this.toolStripSplitButtonStepBackward.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripSplitButtonStepBackward.Name = "toolStripSplitButtonStepBackward"; + this.toolStripSplitButtonStepBackward.Size = new System.Drawing.Size(32, 22); + this.toolStripSplitButtonStepBackward.Text = "Navigate some data backward"; + this.toolStripSplitButtonStepBackward.ButtonClick += new System.EventHandler(this.ToolStripButtonStepBackward_Click); + this.toolStripSplitButtonStepBackward.MouseEnter += new System.EventHandler(this.SetStatusbar_Enter); + this.toolStripSplitButtonStepBackward.MouseLeave += new System.EventHandler(this.ClearStatusbar_Leave); + // // tableLayoutPanelData // this.tableLayoutPanelData.AccessibleDescription = "Group the data"; @@ -1470,7 +1472,9 @@ private void InitializeComponent() this.toolStripStatusLabelUpdate.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.toolStripStatusLabelUpdate.AutoToolTip = true; this.toolStripStatusLabelUpdate.Image = global::Planetoid_DB.Properties.Resources.silk_database_lightning; + this.toolStripStatusLabelUpdate.IsLink = true; this.toolStripStatusLabelUpdate.LinkBehavior = System.Windows.Forms.LinkBehavior.HoverUnderline; + this.toolStripStatusLabelUpdate.LinkColor = System.Drawing.SystemColors.ControlText; this.toolStripStatusLabelUpdate.Margin = new System.Windows.Forms.Padding(5, 3, 0, 2); this.toolStripStatusLabelUpdate.Name = "toolStripStatusLabelUpdate"; this.toolStripStatusLabelUpdate.Size = new System.Drawing.Size(187, 16); @@ -1536,6 +1540,7 @@ private void InitializeComponent() this.labelInformation.Margin = new System.Windows.Forms.Padding(5, 3, 0, 2); this.labelInformation.Name = "labelInformation"; this.labelInformation.Size = new System.Drawing.Size(116, 16); + this.labelInformation.Spring = true; this.labelInformation.Text = "Show tooltip here"; this.labelInformation.ToolTipText = "Show some information"; // @@ -1893,6 +1898,8 @@ private void InitializeComponent() this.menuitemOptions.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripMenuItemSettings, this.toolStripSeparatorOptions, + this.toolStripMenuItemFilter, + this.toolStripSeparatorOptions9, this.menuitemCheckMpcorbDat, this.menuitemDownloadMpcorbDat, this.toolStripSeparatorOptions3, @@ -1919,11 +1926,34 @@ private void InitializeComponent() // // toolStripSeparatorOptions // + this.toolStripSeparatorOptions.AccessibleRole = System.Windows.Forms.AccessibleRole.Separator; this.toolStripSeparatorOptions.Name = "toolStripSeparatorOptions"; this.toolStripSeparatorOptions.Size = new System.Drawing.Size(241, 6); this.toolStripSeparatorOptions.MouseEnter += new System.EventHandler(this.SetStatusbar_Enter); this.toolStripSeparatorOptions.MouseLeave += new System.EventHandler(this.ClearStatusbar_Leave); // + // toolStripMenuItemFilter + // + this.toolStripMenuItemFilter.AccessibleRole = System.Windows.Forms.AccessibleRole.MenuItem; + this.toolStripMenuItemFilter.AutoToolTip = true; + this.toolStripMenuItemFilter.Enabled = false; + this.toolStripMenuItemFilter.Image = global::Planetoid_DB.Properties.Resources.silk_arrow_divide; + this.toolStripMenuItemFilter.Name = "toolStripMenuItemFilter"; + this.toolStripMenuItemFilter.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F))); + this.toolStripMenuItemFilter.Size = new System.Drawing.Size(244, 22); + this.toolStripMenuItemFilter.Text = "&Filter"; + this.toolStripMenuItemFilter.Click += new System.EventHandler(this.ToolStripMenuItemFilter_Click); + this.toolStripMenuItemFilter.MouseEnter += new System.EventHandler(this.SetStatusbar_Enter); + this.toolStripMenuItemFilter.MouseLeave += new System.EventHandler(this.ClearStatusbar_Leave); + // + // toolStripSeparatorOptions9 + // + this.toolStripSeparatorOptions9.AccessibleRole = System.Windows.Forms.AccessibleRole.Separator; + this.toolStripSeparatorOptions9.Name = "toolStripSeparatorOptions9"; + this.toolStripSeparatorOptions9.Size = new System.Drawing.Size(241, 6); + this.toolStripSeparatorOptions9.MouseEnter += new System.EventHandler(this.SetStatusbar_Enter); + this.toolStripSeparatorOptions9.MouseLeave += new System.EventHandler(this.ClearStatusbar_Leave); + // // menuitemCheckMpcorbDat // this.menuitemCheckMpcorbDat.AccessibleDescription = "Check for updates of the database"; @@ -2969,6 +2999,8 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripSeparator toolStripSeparatorTools1; private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemSettings; private System.Windows.Forms.ToolStripSeparator toolStripSeparatorOptions; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItemFilter; + private System.Windows.Forms.ToolStripSeparator toolStripSeparatorOptions9; } } diff --git a/PlanetoidDB/PlanetoidDBForm.cs b/PlanetoidDB/PlanetoidDBForm.cs index 4f5b85a8..0e40a72b 100644 --- a/PlanetoidDB/PlanetoidDBForm.cs +++ b/PlanetoidDB/PlanetoidDBForm.cs @@ -6,6 +6,7 @@ using System.Net; using System.Net.NetworkInformation; using System.Reflection; +using System.Runtime.InteropServices; using System.Windows.Forms; using Office2007Rendering; using VS2008StripRenderingLibrary; @@ -25,6 +26,30 @@ public partial class PlanetoidDBForm : Form private readonly string strFilenameMPCORBtemp = Properties.Resources.FilenameMpcorbTemp; private readonly Uri uriMPCORB = new Uri(uriString: Properties.Resources.MpcorbUrl); + private const int FEATURE_DISABLE_NAVIGATION_SOUNDS = 21; + private const int SET_FEATURE_ON_THREAD = 0x00000001; + private const int SET_FEATURE_ON_PROCESS = 0x00000002; + private const int SET_FEATURE_IN_REGISTRY = 0x00000004; + private const int SET_FEATURE_ON_THREAD_LOCALMACHINE = 0x00000008; + private const int SET_FEATURE_ON_THREAD_INTRANET = 0x00000010; + private const int SET_FEATURE_ON_THREAD_TRUSTED = 0x00000020; + private const int SET_FEATURE_ON_THREAD_INTERNET = 0x00000040; + private const int SET_FEATURE_ON_THREAD_RESTRICTED = 0x00000080; + + // Necessary dll import + /// + /// + /// + /// + /// + /// + /// + [DllImport("urlmon.dll")] + [PreserveSig] + [return: MarshalAs(UnmanagedType.Error)] + + static extern int CoInternetSetFeatureEnabled(int FeatureEntry, [MarshalAs(UnmanagedType.U4)] int dwFlags, bool fEnable); + #region Local methods /// @@ -356,6 +381,7 @@ public PlanetoidDBForm() /// private void PlanetoidDBForm_Load(object sender, EventArgs e) { + CoInternetSetFeatureEnabled(FeatureEntry: FEATURE_DISABLE_NAVIGATION_SOUNDS, dwFlags: SET_FEATURE_ON_PROCESS, fEnable: true); SetDoubleBuffered(control: tableLayoutPanelData); ToolStripManager.Renderer = new Office2007Renderer(); backgroundWorkerLoadingDatabase.WorkerReportsProgress = true; @@ -1423,6 +1449,16 @@ private void ToolStripMenuItemSettings_Click(object sender, EventArgs e) //todo: add Settings here } + /// + /// + /// + /// + /// + private void ToolStripMenuItemFilter_Click(object sender, EventArgs e) + { + //todo: add Filter here + } + #endregion #region DoubleClick-Handler diff --git a/PlanetoidDB/Properties/Resources.Designer.cs b/PlanetoidDB/Properties/Resources.Designer.cs index 6c74bfc2..6e637f49 100644 --- a/PlanetoidDB/Properties/Resources.Designer.cs +++ b/PlanetoidDB/Properties/Resources.Designer.cs @@ -134,6 +134,16 @@ internal static System.Drawing.Bitmap silk_add { } } + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap silk_arrow_divide { + get { + object obj = ResourceManager.GetObject("silk_arrow_divide", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. /// diff --git a/PlanetoidDB/Properties/Resources.resx b/PlanetoidDB/Properties/Resources.resx index 596999c6..96147016 100644 --- a/PlanetoidDB/Properties/Resources.resx +++ b/PlanetoidDB/Properties/Resources.resx @@ -139,11 +139,14 @@ ..\Resources\silk_page_copy.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_control_forward_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\silk_backward-end_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_bullet_goback.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_forward-end_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_computer.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -157,6 +160,9 @@ ..\Resources\silk_book.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_cross.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\silk_chart_curve.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -169,20 +175,17 @@ ..\Resources\silk_control_backward-end_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_picture.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - ..\Resources\silk_package.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_control_forward-1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_control_remove_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_reload.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_control_remove_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_section_expanded.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_control_forward-end_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -205,8 +208,8 @@ ..\Resources\silk_help.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - _ + + ..\Resources\silk_flag_fr.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_add.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -217,14 +220,11 @@ ..\Resources\silk_cancel.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_table.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - ..\Resources\silk_bullet_arrow_down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_clock.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\resources\silk_forward-end_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_page_white_excel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -244,20 +244,11 @@ ..\Resources\silk_disk.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_folder.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\silk_backward-1_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - ..\Resources\silk_world_night.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_page_white_text.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - https://planetoid-db.de + + ..\Resources\silk_pan.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a mpcorb.dat @@ -268,11 +259,11 @@ ..\Resources\silk_control_blank_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_control_remove.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_folder.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_control_add_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_wrench_orange.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_lightbulb.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -292,23 +283,20 @@ ..\Resources\silk_control_stop_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_decline.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\silk_clipboard.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\resources\silk_forward-end_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\silk_flag_de.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\silk_flag_fr.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_arrow_refresh.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_pan.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_bullet_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_forward-end_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_control_backward-1_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_email.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -322,6 +310,15 @@ ..\Resources\silk_printer.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_arrow_switch.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\silk_image.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\silk_lightbulb_off.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\silk_zoom_out.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -337,11 +334,8 @@ ..\Resources\silk_zoom_in.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_backward_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\silk_page_white_word.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_bullet_arrow_left.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_page_white_code.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -358,14 +352,23 @@ ..\Resources\silk_pencil.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_lightbulb_off.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_chart_line.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_page_paste.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_clock.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_control_backward-1_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_flag_de.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\silk_control_remove.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\silk_date.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\silk_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_connect.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -376,23 +379,20 @@ ..\Resources\silk_note.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_image.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\silk_backward-end_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + _ - - ..\Resources\silk_wrench_orange.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_control_forward-1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_database_lightning.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_table.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_backward-1_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_control_backward-1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_backward_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_disconnect.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -403,8 +403,8 @@ ..\Resources\silk_database.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_date.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_page_white_word.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_world.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -412,17 +412,17 @@ ..\Resources\silk_control_blank.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_bullet_arrow_left.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_control_backward-1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_information.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_decline.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_backward-end_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_chart_line.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_page_paste.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_asterisk_orange.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -433,6 +433,9 @@ ..\Resources\silk_text_list_bullets.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_lightning.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\silk_page_white_database.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -451,8 +454,11 @@ ..\Resources\silk_database_copy.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_control_forward_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_control_add_blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\silk_forward_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_accept.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -460,8 +466,8 @@ ..\Resources\silk_flag_es.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_section_expanded.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_bullet_goback.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_tag.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -472,8 +478,11 @@ ..\Resources\silk_ruler.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_lightning.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_backward-1_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\silk_database_lightning.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_control_stop.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -490,8 +499,8 @@ ..\Resources\silk_forward-1_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_cross.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_page_white_text.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_wrench.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -502,8 +511,8 @@ ..\Resources\silk_backward_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - ..\Resources\silk_forward_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_picture.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\silk_go.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @@ -511,16 +520,10 @@ http://www.minorplanetcenter.org/iau/MPCORB/MPCORB.DAT - - ..\Resources\silk_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\silk_arrow_refresh.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\silk_arrow_switch.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + https://planetoid-db.de - - ..\Resources\silk_bullet_green.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\silk_arrow_divide.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a \ No newline at end of file diff --git a/PlanetoidDB/TerminologyForm.cs b/PlanetoidDB/TerminologyForm.cs index 08488331..40094404 100644 --- a/PlanetoidDB/TerminologyForm.cs +++ b/PlanetoidDB/TerminologyForm.cs @@ -1,6 +1,5 @@ using System; using System.Drawing; -using System.Runtime.InteropServices; using System.Windows.Forms; namespace Planetoid_DB @@ -42,13 +41,6 @@ private bool isLabelFlagsActive = false, isLabelObsLastDateActive = false; - // Necessary dll import - [DllImport("urlmon.dll")] - [PreserveSig] - [return: MarshalAs(UnmanagedType.Error)] - - static extern int CoInternetSetFeatureEnabled(int FeatureEntry, [MarshalAs(UnmanagedType.U4)] int dwFlags, bool fEnable); - #region local methods /// @@ -278,7 +270,7 @@ private void SetBackAndForeColors(ref Label label, Color backColor, Color foreCo /// /// /// - private void TerminologyForm_Load(object sender, EventArgs e) => CoInternetSetFeatureEnabled(FeatureEntry: FEATURE_DISABLE_NAVIGATION_SOUNDS, dwFlags: SET_FEATURE_ON_PROCESS, fEnable: true); + private void TerminologyForm_Load(object sender, EventArgs e) { } /// ///