From 240e89f02b1d05e7934966442ca5ab2b94a6a0da Mon Sep 17 00:00:00 2001 From: Michael Johne Date: Fri, 27 Sep 2019 01:02:16 +0200 Subject: [PATCH] update to 0.4.1.16 --- CatalogChooserForm.cs | 2 +- DownloaderForm.Designer.cs | 4 +- DownloaderForm.cs | 2 +- HipparcosCatalogViewerForm.cs | 2 +- OptionsForm.Designer.cs | 770 ++++++++++++++++++++------------ OptionsForm.cs | 342 ++++++++++---- OptionsForm.resx | 2 +- Properties/AssemblyInfo.cs | 4 +- Properties/Settings.Designer.cs | 170 ++++++- Properties/Settings.settings | 59 ++- app.config | 64 +++ 11 files changed, 1037 insertions(+), 384 deletions(-) diff --git a/CatalogChooserForm.cs b/CatalogChooserForm.cs index 54312bd..b8b1919 100644 --- a/CatalogChooserForm.cs +++ b/CatalogChooserForm.cs @@ -142,7 +142,7 @@ private void CatalogChooserForm_Load(object sender, EventArgs e) */ ClearStatusbar(); } - + #region Click event handlers private void ButtonOpenTychoCatalog_Click(object sender, EventArgs e) diff --git a/DownloaderForm.Designer.cs b/DownloaderForm.Designer.cs index 05363a4..e1804cd 100644 --- a/DownloaderForm.Designer.cs +++ b/DownloaderForm.Designer.cs @@ -298,8 +298,8 @@ private void InitializeComponent() // // toolStripTextBoxHost // - this.toolStripTextBoxHost.AccessibleDescription = "Contents the name of the host"; - this.toolStripTextBoxHost.AccessibleName = "Name of the host"; + this.toolStripTextBoxHost.AccessibleDescription = "Contents the url of the host"; + this.toolStripTextBoxHost.AccessibleName = "Host url"; this.toolStripTextBoxHost.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.toolStripTextBoxHost.AutoToolTip = true; this.toolStripTextBoxHost.BackColor = System.Drawing.SystemColors.Window; diff --git a/DownloaderForm.cs b/DownloaderForm.cs index e61aa75..2abc43c 100644 --- a/DownloaderForm.cs +++ b/DownloaderForm.cs @@ -215,7 +215,7 @@ private void ToolStripButtonEditHost_Click(object sender, EventArgs e) { toolStripButtonEditHost.Image = Properties.Resources.fugue_tick_button_16px_shadowless; toolStripButtonEditHost.Text = "&Apply"; - toolStripButtonRestoreHost.Enabled = true; + toolStripButtonRestoreHost.Enabled = true; } else { diff --git a/HipparcosCatalogViewerForm.cs b/HipparcosCatalogViewerForm.cs index 29aaa75..8eb8300 100644 --- a/HipparcosCatalogViewerForm.cs +++ b/HipparcosCatalogViewerForm.cs @@ -4717,7 +4717,7 @@ private void LabelSourceOfSpectralTypeData_DoubleClick(object sender, EventArgs { CopyToClipboard(sender: sender, e: e); } - + private void LabelReferenceFlagForAstrometryData_DoubleClick(object sender, EventArgs e) { CopyToClipboard(sender: sender, e: e); diff --git a/OptionsForm.Designer.cs b/OptionsForm.Designer.cs index 5d2e689..80aeb26 100644 --- a/OptionsForm.Designer.cs +++ b/OptionsForm.Designer.cs @@ -31,40 +31,45 @@ private void InitializeComponent() this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(OptionsForm)); this.statusStrip = new System.Windows.Forms.StatusStrip(); + this.toolStripStatusLabelInfo = new System.Windows.Forms.ToolStripStatusLabel(); this.toolTip = new System.Windows.Forms.ToolTip(this.components); + this.buttonRestoreHost = new System.Windows.Forms.Button(); + this.buttonRestoreHipparcosDirectory = new System.Windows.Forms.Button(); + this.buttonRestoreTychoDirectory = new System.Windows.Forms.Button(); this.toolStripContainer = new System.Windows.Forms.ToolStripContainer(); - this.groupBoxQuickDownload = new System.Windows.Forms.GroupBox(); - this.checkBoxEnableQuickDownload = new System.Windows.Forms.CheckBox(); - this.labelDefaultHost = new System.Windows.Forms.Label(); - this.textBoxDefaultHost = new System.Windows.Forms.TextBox(); - this.groupBoxDataTableStyle = new System.Windows.Forms.GroupBox(); - this.labelDataTableStyle = new System.Windows.Forms.Label(); - this.comboBoxDataTableStyle = new System.Windows.Forms.ComboBox(); + this.groupBoxCatalogDirectories = new System.Windows.Forms.GroupBox(); + this.textBoxTychoDirectory = new System.Windows.Forms.TextBox(); + this.labelTychoDirectory = new System.Windows.Forms.Label(); + this.textBoxHipparcosDirectory = new System.Windows.Forms.TextBox(); + this.labelHipparcosDirectory = new System.Windows.Forms.Label(); + this.groupBoxHoverEffect = new System.Windows.Forms.GroupBox(); + this.checkBoxEnableHoverEffect = new System.Windows.Forms.CheckBox(); this.groupBoxCopyDataMethod = new System.Windows.Forms.GroupBox(); this.comboBoxCopyDataMethod = new System.Windows.Forms.ComboBox(); this.labelCopyDataMethod = new System.Windows.Forms.Label(); - this.groupBoxHoverEffect = new System.Windows.Forms.GroupBox(); - this.checkBoxEnableHoverEffect = new System.Windows.Forms.CheckBox(); - this.buttonApply = new System.Windows.Forms.Button(); + this.groupBoxDataTableStyle = new System.Windows.Forms.GroupBox(); + this.comboBoxDataTableStyle = new System.Windows.Forms.ComboBox(); + this.labelDataTableStyle = new System.Windows.Forms.Label(); + this.groupBoxQuickDownload = new System.Windows.Forms.GroupBox(); + this.textBoxHost = new System.Windows.Forms.TextBox(); + this.labelHost = new System.Windows.Forms.Label(); + this.checkBoxEnableQuickDownload = new System.Windows.Forms.CheckBox(); this.buttonCancel = new System.Windows.Forms.Button(); - this.toolStripStatusLabelInfo = new System.Windows.Forms.ToolStripStatusLabel(); - this.groupBoxCatalogDirectories = new System.Windows.Forms.GroupBox(); - this.textBoxHipparcosDirectory = new System.Windows.Forms.TextBox(); - this.labelHipparcosDirectory = new System.Windows.Forms.Label(); - this.textBoxTychoDirectory = new System.Windows.Forms.TextBox(); - this.labelTychoDirectory = new System.Windows.Forms.Label(); - this.buttonRestoreHost = new System.Windows.Forms.Button(); - this.buttonRestoreHipparcosDirectory = new System.Windows.Forms.Button(); - this.buttonRestoreTychoDirectory = new System.Windows.Forms.Button(); + this.buttonApply = new System.Windows.Forms.Button(); + this.comboBoxStartPosition = new System.Windows.Forms.ComboBox(); + this.labelStartPosition = new System.Windows.Forms.Label(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.buttonDefaultSettings = new System.Windows.Forms.Button(); this.statusStrip.SuspendLayout(); this.toolStripContainer.BottomToolStripPanel.SuspendLayout(); this.toolStripContainer.ContentPanel.SuspendLayout(); this.toolStripContainer.SuspendLayout(); - this.groupBoxQuickDownload.SuspendLayout(); - this.groupBoxDataTableStyle.SuspendLayout(); - this.groupBoxCopyDataMethod.SuspendLayout(); - this.groupBoxHoverEffect.SuspendLayout(); this.groupBoxCatalogDirectories.SuspendLayout(); + this.groupBoxHoverEffect.SuspendLayout(); + this.groupBoxCopyDataMethod.SuspendLayout(); + this.groupBoxDataTableStyle.SuspendLayout(); + this.groupBoxQuickDownload.SuspendLayout(); + this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // statusStrip @@ -84,136 +89,268 @@ private void InitializeComponent() this.statusStrip.TabIndex = 0; this.statusStrip.Text = "statusStrip"; // + // toolStripStatusLabelInfo + // + this.toolStripStatusLabelInfo.AccessibleDescription = "Text with some information"; + this.toolStripStatusLabelInfo.AccessibleName = "Information text"; + this.toolStripStatusLabelInfo.AccessibleRole = System.Windows.Forms.AccessibleRole.StaticText; + this.toolStripStatusLabelInfo.AutoToolTip = true; + this.toolStripStatusLabelInfo.DoubleClickEnabled = true; + this.toolStripStatusLabelInfo.Image = global::Hipparcos_DB.Properties.Resources.fugue_information_white_16px_shadowless; + this.toolStripStatusLabelInfo.Name = "toolStripStatusLabelInfo"; + this.toolStripStatusLabelInfo.Size = new System.Drawing.Size(66, 17); + this.toolStripStatusLabelInfo.Text = "info text"; + this.toolStripStatusLabelInfo.MouseEnter += new System.EventHandler(this.ToolStripStatusLabelInfo_MouseEnter); + this.toolStripStatusLabelInfo.MouseLeave += new System.EventHandler(this.ToolStripStatusLabelInfo_MouseLeave); + // + // buttonRestoreHost + // + this.buttonRestoreHost.AccessibleDescription = "Restore the host url"; + this.buttonRestoreHost.AccessibleName = "Restore the host url"; + this.buttonRestoreHost.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.buttonRestoreHost.Image = global::Hipparcos_DB.Properties.Resources.fugue_arrow_curve_180_left_shadowless; + this.buttonRestoreHost.Location = new System.Drawing.Point(336, 39); + this.buttonRestoreHost.Name = "buttonRestoreHost"; + this.buttonRestoreHost.Size = new System.Drawing.Size(29, 23); + this.buttonRestoreHost.TabIndex = 3; + this.buttonRestoreHost.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.toolTip.SetToolTip(this.buttonRestoreHost, "Restore the host url"); + this.buttonRestoreHost.UseVisualStyleBackColor = true; + this.buttonRestoreHost.Click += new System.EventHandler(this.ButtonRestoreHost_Click); + this.buttonRestoreHost.Enter += new System.EventHandler(this.ButtonRestoreHost_Enter); + this.buttonRestoreHost.Leave += new System.EventHandler(this.ButtonRestoreHost_Leave); + this.buttonRestoreHost.MouseEnter += new System.EventHandler(this.ButtonRestoreHost_MouseEnter); + this.buttonRestoreHost.MouseLeave += new System.EventHandler(this.ButtonRestoreHost_MouseLeave); + // + // buttonRestoreHipparcosDirectory + // + this.buttonRestoreHipparcosDirectory.AccessibleDescription = "Restore the Hipparcos catalog directory"; + this.buttonRestoreHipparcosDirectory.AccessibleName = "Restore the Hipparcos catalog directory"; + this.buttonRestoreHipparcosDirectory.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.buttonRestoreHipparcosDirectory.Image = global::Hipparcos_DB.Properties.Resources.fugue_arrow_curve_180_left_shadowless; + this.buttonRestoreHipparcosDirectory.Location = new System.Drawing.Point(336, 11); + this.buttonRestoreHipparcosDirectory.Name = "buttonRestoreHipparcosDirectory"; + this.buttonRestoreHipparcosDirectory.Size = new System.Drawing.Size(29, 23); + this.buttonRestoreHipparcosDirectory.TabIndex = 2; + this.buttonRestoreHipparcosDirectory.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.toolTip.SetToolTip(this.buttonRestoreHipparcosDirectory, "Restore the Hipparcos catalog directory"); + this.buttonRestoreHipparcosDirectory.UseVisualStyleBackColor = true; + this.buttonRestoreHipparcosDirectory.Click += new System.EventHandler(this.ButtonRestoreHipparcosDirectory_Click); + this.buttonRestoreHipparcosDirectory.Enter += new System.EventHandler(this.ButtonRestoreHipparcosDirectory_Enter); + this.buttonRestoreHipparcosDirectory.Leave += new System.EventHandler(this.ButtonRestoreHipparcosDirectory_Leave); + this.buttonRestoreHipparcosDirectory.MouseEnter += new System.EventHandler(this.ButtonRestoreHipparcosDirectory_MouseEnter); + this.buttonRestoreHipparcosDirectory.MouseLeave += new System.EventHandler(this.ButtonRestoreHipparcosDirectory_MouseLeave); + // + // buttonRestoreTychoDirectory + // + this.buttonRestoreTychoDirectory.AccessibleDescription = "Restore the Tycho catalog directory"; + this.buttonRestoreTychoDirectory.AccessibleName = "Restore the Tycho catalog directory"; + this.buttonRestoreTychoDirectory.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.buttonRestoreTychoDirectory.Image = global::Hipparcos_DB.Properties.Resources.fugue_arrow_curve_180_left_shadowless; + this.buttonRestoreTychoDirectory.Location = new System.Drawing.Point(336, 37); + this.buttonRestoreTychoDirectory.Name = "buttonRestoreTychoDirectory"; + this.buttonRestoreTychoDirectory.Size = new System.Drawing.Size(29, 23); + this.buttonRestoreTychoDirectory.TabIndex = 5; + this.buttonRestoreTychoDirectory.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.toolTip.SetToolTip(this.buttonRestoreTychoDirectory, "Restore Tycho catalog directory"); + this.buttonRestoreTychoDirectory.UseVisualStyleBackColor = true; + this.buttonRestoreTychoDirectory.Click += new System.EventHandler(this.ButtonRestoreTychoDirectory_Click); + this.buttonRestoreTychoDirectory.Enter += new System.EventHandler(this.ButtonRestoreTychoDirectory_Enter); + this.buttonRestoreTychoDirectory.Leave += new System.EventHandler(this.ButtonRestoreTychoDirectory_Leave); + this.buttonRestoreTychoDirectory.MouseEnter += new System.EventHandler(this.ButtonRestoreTychoDirectory_MouseEnter); + this.buttonRestoreTychoDirectory.MouseLeave += new System.EventHandler(this.ButtonRestoreTychoDirectory_MouseLeave); + // // toolStripContainer // + this.toolStripContainer.AccessibleDescription = "Group the toolstrip container"; + this.toolStripContainer.AccessibleName = "container grouping"; + this.toolStripContainer.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; // // toolStripContainer.BottomToolStripPanel // + this.toolStripContainer.BottomToolStripPanel.AccessibleDescription = "lower part of the container"; + this.toolStripContainer.BottomToolStripPanel.AccessibleName = "lower part of the container"; + this.toolStripContainer.BottomToolStripPanel.AccessibleRole = System.Windows.Forms.AccessibleRole.Pane; this.toolStripContainer.BottomToolStripPanel.Controls.Add(this.statusStrip); // // toolStripContainer.ContentPanel // + this.toolStripContainer.ContentPanel.AccessibleDescription = "content panel of the container"; + this.toolStripContainer.ContentPanel.AccessibleName = "content panel of the container"; + this.toolStripContainer.ContentPanel.AccessibleRole = System.Windows.Forms.AccessibleRole.Pane; + this.toolStripContainer.ContentPanel.Controls.Add(this.buttonDefaultSettings); + this.toolStripContainer.ContentPanel.Controls.Add(this.buttonCancel); + this.toolStripContainer.ContentPanel.Controls.Add(this.buttonApply); + this.toolStripContainer.ContentPanel.Controls.Add(this.groupBox1); this.toolStripContainer.ContentPanel.Controls.Add(this.groupBoxCatalogDirectories); this.toolStripContainer.ContentPanel.Controls.Add(this.groupBoxHoverEffect); this.toolStripContainer.ContentPanel.Controls.Add(this.groupBoxCopyDataMethod); this.toolStripContainer.ContentPanel.Controls.Add(this.groupBoxDataTableStyle); this.toolStripContainer.ContentPanel.Controls.Add(this.groupBoxQuickDownload); - this.toolStripContainer.ContentPanel.Controls.Add(this.buttonCancel); - this.toolStripContainer.ContentPanel.Controls.Add(this.buttonApply); - this.toolStripContainer.ContentPanel.Size = new System.Drawing.Size(396, 278); + this.toolStripContainer.ContentPanel.Size = new System.Drawing.Size(396, 311); this.toolStripContainer.Dock = System.Windows.Forms.DockStyle.Fill; + // + // toolStripContainer.LeftToolStripPanel + // + this.toolStripContainer.LeftToolStripPanel.AccessibleDescription = "left part of the container"; + this.toolStripContainer.LeftToolStripPanel.AccessibleName = "left part of the container"; + this.toolStripContainer.LeftToolStripPanel.AccessibleRole = System.Windows.Forms.AccessibleRole.Pane; this.toolStripContainer.Location = new System.Drawing.Point(0, 0); this.toolStripContainer.Name = "toolStripContainer"; - this.toolStripContainer.Size = new System.Drawing.Size(396, 300); + // + // toolStripContainer.RightToolStripPanel + // + this.toolStripContainer.RightToolStripPanel.AccessibleDescription = "right part of the container"; + this.toolStripContainer.RightToolStripPanel.AccessibleName = "right part of the container"; + this.toolStripContainer.RightToolStripPanel.AccessibleRole = System.Windows.Forms.AccessibleRole.Pane; + this.toolStripContainer.Size = new System.Drawing.Size(396, 333); this.toolStripContainer.TabIndex = 0; this.toolStripContainer.Text = "toolStripContainer"; // - // groupBoxQuickDownload + // toolStripContainer.TopToolStripPanel // - this.groupBoxQuickDownload.Controls.Add(this.buttonRestoreHost); - this.groupBoxQuickDownload.Controls.Add(this.textBoxDefaultHost); - this.groupBoxQuickDownload.Controls.Add(this.labelDefaultHost); - this.groupBoxQuickDownload.Controls.Add(this.checkBoxEnableQuickDownload); - this.groupBoxQuickDownload.Location = new System.Drawing.Point(12, 122); - this.groupBoxQuickDownload.Name = "groupBoxQuickDownload"; - this.groupBoxQuickDownload.Size = new System.Drawing.Size(371, 69); - this.groupBoxQuickDownload.TabIndex = 5; - this.groupBoxQuickDownload.TabStop = false; - this.groupBoxQuickDownload.Text = "Quick download"; + this.toolStripContainer.TopToolStripPanel.AccessibleDescription = "upper part of the container"; + this.toolStripContainer.TopToolStripPanel.AccessibleName = "upper part of the container"; + this.toolStripContainer.TopToolStripPanel.AccessibleRole = System.Windows.Forms.AccessibleRole.Pane; // - // checkBoxEnableQuickDownload + // groupBoxCatalogDirectories // - this.checkBoxEnableQuickDownload.AutoSize = true; - this.checkBoxEnableQuickDownload.Location = new System.Drawing.Point(7, 20); - this.checkBoxEnableQuickDownload.Name = "checkBoxEnableQuickDownload"; - this.checkBoxEnableQuickDownload.Size = new System.Drawing.Size(208, 17); - this.checkBoxEnableQuickDownload.TabIndex = 0; - this.checkBoxEnableQuickDownload.Text = "Enable quick download of catalog files"; - this.checkBoxEnableQuickDownload.UseVisualStyleBackColor = true; - this.checkBoxEnableQuickDownload.CheckedChanged += new System.EventHandler(this.CheckBoxEnableQuickDownload_CheckedChanged); - this.checkBoxEnableQuickDownload.Enter += new System.EventHandler(this.CheckBoxEnableQuickDownload_Enter); - this.checkBoxEnableQuickDownload.Leave += new System.EventHandler(this.CheckBoxEnableQuickDownload_Leave); - this.checkBoxEnableQuickDownload.MouseEnter += new System.EventHandler(this.CheckBoxEnableQuickDownload_MouseEnter); - this.checkBoxEnableQuickDownload.MouseLeave += new System.EventHandler(this.CheckBoxEnableQuickDownload_MouseLeave); + this.groupBoxCatalogDirectories.AccessibleDescription = "Group the catalog directories setting"; + this.groupBoxCatalogDirectories.AccessibleName = "Group the catalog directories setting"; + this.groupBoxCatalogDirectories.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; + this.groupBoxCatalogDirectories.Controls.Add(this.buttonRestoreTychoDirectory); + this.groupBoxCatalogDirectories.Controls.Add(this.buttonRestoreHipparcosDirectory); + this.groupBoxCatalogDirectories.Controls.Add(this.textBoxTychoDirectory); + this.groupBoxCatalogDirectories.Controls.Add(this.labelTychoDirectory); + this.groupBoxCatalogDirectories.Controls.Add(this.textBoxHipparcosDirectory); + this.groupBoxCatalogDirectories.Controls.Add(this.labelHipparcosDirectory); + this.groupBoxCatalogDirectories.Location = new System.Drawing.Point(12, 205); + this.groupBoxCatalogDirectories.Name = "groupBoxCatalogDirectories"; + this.groupBoxCatalogDirectories.Size = new System.Drawing.Size(371, 69); + this.groupBoxCatalogDirectories.TabIndex = 5; + this.groupBoxCatalogDirectories.TabStop = false; + this.groupBoxCatalogDirectories.Text = "Catalog directories"; // - // labelDefaultHost - // - this.labelDefaultHost.AutoSize = true; - this.labelDefaultHost.Location = new System.Drawing.Point(7, 44); - this.labelDefaultHost.Name = "labelDefaultHost"; - this.labelDefaultHost.Size = new System.Drawing.Size(67, 13); - this.labelDefaultHost.TabIndex = 1; - this.labelDefaultHost.Text = "Default host:"; - this.labelDefaultHost.Enter += new System.EventHandler(this.LabelDefaultHost_Enter); - this.labelDefaultHost.Leave += new System.EventHandler(this.LabelDefaultHost_Leave); - this.labelDefaultHost.MouseEnter += new System.EventHandler(this.LabelDefaultHost_MouseEnter); - this.labelDefaultHost.MouseLeave += new System.EventHandler(this.LabelDefaultHost_MouseLeave); - // - // textBoxDefaultHost - // - this.textBoxDefaultHost.Location = new System.Drawing.Point(80, 41); - this.textBoxDefaultHost.Name = "textBoxDefaultHost"; - this.textBoxDefaultHost.Size = new System.Drawing.Size(250, 20); - this.textBoxDefaultHost.TabIndex = 2; - this.textBoxDefaultHost.Text = "http://cdsarc.u-strasbg.fr/ftp/I/239/"; - this.textBoxDefaultHost.Enter += new System.EventHandler(this.TextBoxDefaultHost_Enter); - this.textBoxDefaultHost.Leave += new System.EventHandler(this.TextBoxDefaultHost_Leave); - this.textBoxDefaultHost.MouseEnter += new System.EventHandler(this.TextBoxDefaultHost_MouseEnter); - this.textBoxDefaultHost.MouseLeave += new System.EventHandler(this.TextBoxDefaultHost_MouseLeave); + // textBoxTychoDirectory // - // groupBoxDataTableStyle + this.textBoxTychoDirectory.AccessibleDescription = "Contents the Tycho catalog directory"; + this.textBoxTychoDirectory.AccessibleName = "Tycho catalog directory"; + this.textBoxTychoDirectory.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; + this.textBoxTychoDirectory.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.textBoxTychoDirectory.Location = new System.Drawing.Point(114, 39); + this.textBoxTychoDirectory.Name = "textBoxTychoDirectory"; + this.textBoxTychoDirectory.Size = new System.Drawing.Size(216, 20); + this.textBoxTychoDirectory.TabIndex = 4; + this.textBoxTychoDirectory.Text = "catalog/i239/"; + this.toolTip.SetToolTip(this.textBoxTychoDirectory, "Tycho catalog directory"); + this.textBoxTychoDirectory.Enter += new System.EventHandler(this.TextBoxTychoDirectory_Enter); + this.textBoxTychoDirectory.Leave += new System.EventHandler(this.TextBoxTychoDirectory_Leave); + this.textBoxTychoDirectory.MouseEnter += new System.EventHandler(this.TextBoxTychoDirectory_MouseEnter); + this.textBoxTychoDirectory.MouseLeave += new System.EventHandler(this.TextBoxTychoDirectory_MouseLeave); // - this.groupBoxDataTableStyle.Controls.Add(this.comboBoxDataTableStyle); - this.groupBoxDataTableStyle.Controls.Add(this.labelDataTableStyle); - this.groupBoxDataTableStyle.Location = new System.Drawing.Point(201, 63); - this.groupBoxDataTableStyle.Name = "groupBoxDataTableStyle"; - this.groupBoxDataTableStyle.Size = new System.Drawing.Size(182, 53); - this.groupBoxDataTableStyle.TabIndex = 4; - this.groupBoxDataTableStyle.TabStop = false; - this.groupBoxDataTableStyle.Text = "Data table style"; + // labelTychoDirectory // - // labelDataTableStyle + this.labelTychoDirectory.AccessibleDescription = "Short description of the Tycho catalog directory"; + this.labelTychoDirectory.AccessibleName = "Tycho catalog"; + this.labelTychoDirectory.AccessibleRole = System.Windows.Forms.AccessibleRole.StatusBar; + this.labelTychoDirectory.AutoSize = true; + this.labelTychoDirectory.Location = new System.Drawing.Point(6, 42); + this.labelTychoDirectory.Name = "labelTychoDirectory"; + this.labelTychoDirectory.Size = new System.Drawing.Size(78, 13); + this.labelTychoDirectory.TabIndex = 3; + this.labelTychoDirectory.Text = "&Tycho catalog:"; + this.toolTip.SetToolTip(this.labelTychoDirectory, "Tycho catalog directory"); + this.labelTychoDirectory.Enter += new System.EventHandler(this.LabelTychoDirectory_Enter); + this.labelTychoDirectory.Leave += new System.EventHandler(this.LabelTychoDirectory_Leave); + this.labelTychoDirectory.MouseEnter += new System.EventHandler(this.LabelTychoDirectory_MouseEnter); + this.labelTychoDirectory.MouseLeave += new System.EventHandler(this.LabelTychoDirectory_MouseLeave); // - this.labelDataTableStyle.AutoSize = true; - this.labelDataTableStyle.Location = new System.Drawing.Point(6, 22); - this.labelDataTableStyle.Name = "labelDataTableStyle"; - this.labelDataTableStyle.Size = new System.Drawing.Size(33, 13); - this.labelDataTableStyle.TabIndex = 0; - this.labelDataTableStyle.Text = "Style:"; - this.labelDataTableStyle.Enter += new System.EventHandler(this.LabelDataTableStyle_Enter); - this.labelDataTableStyle.Leave += new System.EventHandler(this.LabelDataTableStyle_Leave); - this.labelDataTableStyle.MouseEnter += new System.EventHandler(this.LabelDataTableStyle_MouseEnter); - this.labelDataTableStyle.MouseLeave += new System.EventHandler(this.LabelDataTableStyle_MouseLeave); + // textBoxHipparcosDirectory // - // comboBoxDataTableStyle + this.textBoxHipparcosDirectory.AccessibleDescription = "Contents the Hipparcos catalog directory"; + this.textBoxHipparcosDirectory.AccessibleName = "Hipparcos catalog directory"; + this.textBoxHipparcosDirectory.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; + this.textBoxHipparcosDirectory.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.textBoxHipparcosDirectory.Location = new System.Drawing.Point(114, 13); + this.textBoxHipparcosDirectory.Name = "textBoxHipparcosDirectory"; + this.textBoxHipparcosDirectory.Size = new System.Drawing.Size(216, 20); + this.textBoxHipparcosDirectory.TabIndex = 1; + this.textBoxHipparcosDirectory.Text = "catalog/i239/"; + this.toolTip.SetToolTip(this.textBoxHipparcosDirectory, "Hipparcos catalog directory"); + this.textBoxHipparcosDirectory.Enter += new System.EventHandler(this.TextBoxHipparcosDirectory_Enter); + this.textBoxHipparcosDirectory.Leave += new System.EventHandler(this.TextBoxHipparcosDirectory_Leave); + this.textBoxHipparcosDirectory.MouseEnter += new System.EventHandler(this.TextBoxHipparcosDirectory_MouseEnter); + this.textBoxHipparcosDirectory.MouseLeave += new System.EventHandler(this.TextBoxHipparcosDirectory_MouseLeave); // - this.comboBoxDataTableStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.comboBoxDataTableStyle.FormattingEnabled = true; - this.comboBoxDataTableStyle.Items.AddRange(new object[] { - "Outset double", - "Inset double"}); - this.comboBoxDataTableStyle.Location = new System.Drawing.Point(45, 19); - this.comboBoxDataTableStyle.Name = "comboBoxDataTableStyle"; - this.comboBoxDataTableStyle.Size = new System.Drawing.Size(131, 21); - this.comboBoxDataTableStyle.TabIndex = 1; - this.comboBoxDataTableStyle.Enter += new System.EventHandler(this.ComboBoxDataTableStyle_Enter); - this.comboBoxDataTableStyle.Leave += new System.EventHandler(this.ComboBoxDataTableStyle_Leave); - this.comboBoxDataTableStyle.MouseEnter += new System.EventHandler(this.ComboBoxDataTableStyle_MouseEnter); - this.comboBoxDataTableStyle.MouseLeave += new System.EventHandler(this.ComboBoxDataTableStyle_MouseLeave); + // labelHipparcosDirectory + // + this.labelHipparcosDirectory.AccessibleDescription = "Short description of the Hipparcos catalog directory"; + this.labelHipparcosDirectory.AccessibleName = "Hipparcos catalog directory"; + this.labelHipparcosDirectory.AccessibleRole = System.Windows.Forms.AccessibleRole.StatusBar; + this.labelHipparcosDirectory.AutoSize = true; + this.labelHipparcosDirectory.Location = new System.Drawing.Point(6, 16); + this.labelHipparcosDirectory.Name = "labelHipparcosDirectory"; + this.labelHipparcosDirectory.Size = new System.Drawing.Size(102, 13); + this.labelHipparcosDirectory.TabIndex = 0; + this.labelHipparcosDirectory.Text = "&Hippparcos catalog:"; + this.toolTip.SetToolTip(this.labelHipparcosDirectory, "Hipparcos catalog directory"); + this.labelHipparcosDirectory.Enter += new System.EventHandler(this.LabelHipparcosDirectory_Enter); + this.labelHipparcosDirectory.Leave += new System.EventHandler(this.LabelHipparcosDirectory_Leave); + this.labelHipparcosDirectory.MouseEnter += new System.EventHandler(this.LabelHipparcosDirectory_MouseEnter); + this.labelHipparcosDirectory.MouseLeave += new System.EventHandler(this.LabelHipparcosDirectory_MouseLeave); + // + // groupBoxHoverEffect + // + this.groupBoxHoverEffect.AccessibleDescription = "Group the hover effect setting"; + this.groupBoxHoverEffect.AccessibleName = "Hover effect grouping"; + this.groupBoxHoverEffect.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; + this.groupBoxHoverEffect.Controls.Add(this.checkBoxEnableHoverEffect); + this.groupBoxHoverEffect.Location = new System.Drawing.Point(12, 12); + this.groupBoxHoverEffect.Name = "groupBoxHoverEffect"; + this.groupBoxHoverEffect.Size = new System.Drawing.Size(182, 53); + this.groupBoxHoverEffect.TabIndex = 0; + this.groupBoxHoverEffect.TabStop = false; + this.groupBoxHoverEffect.Text = "Hover effect"; + // + // checkBoxEnableHoverEffect + // + this.checkBoxEnableHoverEffect.AccessibleDescription = "Check to enable the hover effect on data tables"; + this.checkBoxEnableHoverEffect.AccessibleName = "Enable hover effect"; + this.checkBoxEnableHoverEffect.AccessibleRole = System.Windows.Forms.AccessibleRole.CheckButton; + this.checkBoxEnableHoverEffect.AutoSize = true; + this.checkBoxEnableHoverEffect.Checked = true; + this.checkBoxEnableHoverEffect.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBoxEnableHoverEffect.Location = new System.Drawing.Point(9, 23); + this.checkBoxEnableHoverEffect.Name = "checkBoxEnableHoverEffect"; + this.checkBoxEnableHoverEffect.Size = new System.Drawing.Size(119, 17); + this.checkBoxEnableHoverEffect.TabIndex = 0; + this.checkBoxEnableHoverEffect.Text = "&Enable hover effect"; + this.toolTip.SetToolTip(this.checkBoxEnableHoverEffect, "Check to enable hover effect"); + this.checkBoxEnableHoverEffect.UseVisualStyleBackColor = true; + this.checkBoxEnableHoverEffect.Enter += new System.EventHandler(this.CheckBoxEnableHoverEffect_Enter); + this.checkBoxEnableHoverEffect.Leave += new System.EventHandler(this.CheckBoxEnableHoverEffect_Leave); + this.checkBoxEnableHoverEffect.MouseEnter += new System.EventHandler(this.CheckBoxEnableHoverEffect_MouseEnter); + this.checkBoxEnableHoverEffect.MouseLeave += new System.EventHandler(this.CheckBoxEnableHoverEffect_MouseLeave); // // groupBoxCopyDataMethod // + this.groupBoxCopyDataMethod.AccessibleDescription = "Group the copy data method setting"; + this.groupBoxCopyDataMethod.AccessibleName = "Copy data method grouping"; + this.groupBoxCopyDataMethod.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; this.groupBoxCopyDataMethod.Controls.Add(this.comboBoxCopyDataMethod); this.groupBoxCopyDataMethod.Controls.Add(this.labelCopyDataMethod); - this.groupBoxCopyDataMethod.Location = new System.Drawing.Point(12, 63); + this.groupBoxCopyDataMethod.Location = new System.Drawing.Point(12, 71); this.groupBoxCopyDataMethod.Name = "groupBoxCopyDataMethod"; this.groupBoxCopyDataMethod.Size = new System.Drawing.Size(182, 53); - this.groupBoxCopyDataMethod.TabIndex = 3; + this.groupBoxCopyDataMethod.TabIndex = 2; this.groupBoxCopyDataMethod.TabStop = false; this.groupBoxCopyDataMethod.Text = "Copy data method"; // // comboBoxCopyDataMethod // + this.comboBoxCopyDataMethod.AccessibleDescription = "list of the copy data method"; + this.comboBoxCopyDataMethod.AccessibleName = "Copy data method"; + this.comboBoxCopyDataMethod.AccessibleRole = System.Windows.Forms.AccessibleRole.DropList; this.comboBoxCopyDataMethod.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxCopyDataMethod.FormattingEnabled = true; this.comboBoxCopyDataMethod.Items.AddRange(new object[] { @@ -223,6 +360,7 @@ private void InitializeComponent() this.comboBoxCopyDataMethod.Name = "comboBoxCopyDataMethod"; this.comboBoxCopyDataMethod.Size = new System.Drawing.Size(118, 21); this.comboBoxCopyDataMethod.TabIndex = 1; + this.toolTip.SetToolTip(this.comboBoxCopyDataMethod, "Copy data method"); this.comboBoxCopyDataMethod.Enter += new System.EventHandler(this.ComboBoxCopyDataMethod_Enter); this.comboBoxCopyDataMethod.Leave += new System.EventHandler(this.ComboBoxCopyDataMethod_Leave); this.comboBoxCopyDataMethod.MouseEnter += new System.EventHandler(this.ComboBoxCopyDataMethod_MouseEnter); @@ -230,205 +368,255 @@ private void InitializeComponent() // // labelCopyDataMethod // + this.labelCopyDataMethod.AccessibleDescription = "Short description of the copy data method"; + this.labelCopyDataMethod.AccessibleName = "Copy data method"; + this.labelCopyDataMethod.AccessibleRole = System.Windows.Forms.AccessibleRole.StatusBar; this.labelCopyDataMethod.AutoSize = true; this.labelCopyDataMethod.Location = new System.Drawing.Point(6, 22); this.labelCopyDataMethod.Name = "labelCopyDataMethod"; this.labelCopyDataMethod.Size = new System.Drawing.Size(46, 13); this.labelCopyDataMethod.TabIndex = 0; - this.labelCopyDataMethod.Text = "Method:"; + this.labelCopyDataMethod.Text = "&Method:"; + this.toolTip.SetToolTip(this.labelCopyDataMethod, "Copy data method"); this.labelCopyDataMethod.Enter += new System.EventHandler(this.LabelCopyDataMethod_Enter); this.labelCopyDataMethod.Leave += new System.EventHandler(this.LabelCopyDataMethod_Leave); this.labelCopyDataMethod.MouseEnter += new System.EventHandler(this.LabelCopyDataMethod_MouseEnter); this.labelCopyDataMethod.MouseLeave += new System.EventHandler(this.LabelCopyDataMethod_MouseLeave); // - // groupBoxHoverEffect + // groupBoxDataTableStyle // - this.groupBoxHoverEffect.Controls.Add(this.checkBoxEnableHoverEffect); - this.groupBoxHoverEffect.Location = new System.Drawing.Point(12, 12); - this.groupBoxHoverEffect.Name = "groupBoxHoverEffect"; - this.groupBoxHoverEffect.Size = new System.Drawing.Size(182, 45); - this.groupBoxHoverEffect.TabIndex = 2; - this.groupBoxHoverEffect.TabStop = false; - this.groupBoxHoverEffect.Text = "Hover effect"; + this.groupBoxDataTableStyle.AccessibleDescription = "Group the data table style setting"; + this.groupBoxDataTableStyle.AccessibleName = "Data table style grouping"; + this.groupBoxDataTableStyle.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; + this.groupBoxDataTableStyle.Controls.Add(this.comboBoxDataTableStyle); + this.groupBoxDataTableStyle.Controls.Add(this.labelDataTableStyle); + this.groupBoxDataTableStyle.Location = new System.Drawing.Point(201, 71); + this.groupBoxDataTableStyle.Name = "groupBoxDataTableStyle"; + this.groupBoxDataTableStyle.Size = new System.Drawing.Size(182, 53); + this.groupBoxDataTableStyle.TabIndex = 3; + this.groupBoxDataTableStyle.TabStop = false; + this.groupBoxDataTableStyle.Text = "Data table style"; // - // checkBoxEnableHoverEffect + // comboBoxDataTableStyle // - this.checkBoxEnableHoverEffect.AutoSize = true; - this.checkBoxEnableHoverEffect.Checked = true; - this.checkBoxEnableHoverEffect.CheckState = System.Windows.Forms.CheckState.Checked; - this.checkBoxEnableHoverEffect.Location = new System.Drawing.Point(9, 19); - this.checkBoxEnableHoverEffect.Name = "checkBoxEnableHoverEffect"; - this.checkBoxEnableHoverEffect.Size = new System.Drawing.Size(119, 17); - this.checkBoxEnableHoverEffect.TabIndex = 0; - this.checkBoxEnableHoverEffect.Text = "Enable hover effect"; - this.checkBoxEnableHoverEffect.UseVisualStyleBackColor = true; - this.checkBoxEnableHoverEffect.Enter += new System.EventHandler(this.CheckBoxEnableHoverEffect_Enter); - this.checkBoxEnableHoverEffect.Leave += new System.EventHandler(this.CheckBoxEnableHoverEffect_Leave); - this.checkBoxEnableHoverEffect.MouseEnter += new System.EventHandler(this.CheckBoxEnableHoverEffect_MouseEnter); - this.checkBoxEnableHoverEffect.MouseLeave += new System.EventHandler(this.CheckBoxEnableHoverEffect_MouseLeave); + this.comboBoxDataTableStyle.AccessibleDescription = "list of the data table style"; + this.comboBoxDataTableStyle.AccessibleName = "Data table style"; + this.comboBoxDataTableStyle.AccessibleRole = System.Windows.Forms.AccessibleRole.DropList; + this.comboBoxDataTableStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxDataTableStyle.FormattingEnabled = true; + this.comboBoxDataTableStyle.Items.AddRange(new object[] { + "Outset double", + "Inset double"}); + this.comboBoxDataTableStyle.Location = new System.Drawing.Point(45, 19); + this.comboBoxDataTableStyle.Name = "comboBoxDataTableStyle"; + this.comboBoxDataTableStyle.Size = new System.Drawing.Size(131, 21); + this.comboBoxDataTableStyle.TabIndex = 1; + this.toolTip.SetToolTip(this.comboBoxDataTableStyle, "Data table style"); + this.comboBoxDataTableStyle.Enter += new System.EventHandler(this.ComboBoxDataTableStyle_Enter); + this.comboBoxDataTableStyle.Leave += new System.EventHandler(this.ComboBoxDataTableStyle_Leave); + this.comboBoxDataTableStyle.MouseEnter += new System.EventHandler(this.ComboBoxDataTableStyle_MouseEnter); + this.comboBoxDataTableStyle.MouseLeave += new System.EventHandler(this.ComboBoxDataTableStyle_MouseLeave); // - // buttonApply + // labelDataTableStyle // - this.buttonApply.DialogResult = System.Windows.Forms.DialogResult.OK; - this.buttonApply.Image = global::Hipparcos_DB.Properties.Resources.fugue_tick_button_16px_shadowless; - this.buttonApply.Location = new System.Drawing.Point(210, 25); - this.buttonApply.Name = "buttonApply"; - this.buttonApply.Size = new System.Drawing.Size(75, 23); - this.buttonApply.TabIndex = 0; - this.buttonApply.Text = "&Apply"; - this.buttonApply.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - this.buttonApply.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; - this.buttonApply.UseVisualStyleBackColor = true; - this.buttonApply.Click += new System.EventHandler(this.ButtonApply_Click); - this.buttonApply.Enter += new System.EventHandler(this.ButtonApply_Enter); - this.buttonApply.Leave += new System.EventHandler(this.ButtonApply_Leave); - this.buttonApply.MouseEnter += new System.EventHandler(this.ButtonApply_MouseEnter); - this.buttonApply.MouseLeave += new System.EventHandler(this.ButtonApply_MouseLeave); + this.labelDataTableStyle.AccessibleDescription = "Short description of the data table style"; + this.labelDataTableStyle.AccessibleName = "Data table style"; + this.labelDataTableStyle.AccessibleRole = System.Windows.Forms.AccessibleRole.StatusBar; + this.labelDataTableStyle.AutoSize = true; + this.labelDataTableStyle.Location = new System.Drawing.Point(6, 22); + this.labelDataTableStyle.Name = "labelDataTableStyle"; + this.labelDataTableStyle.Size = new System.Drawing.Size(33, 13); + this.labelDataTableStyle.TabIndex = 0; + this.labelDataTableStyle.Text = "&Style:"; + this.toolTip.SetToolTip(this.labelDataTableStyle, "Data table style"); + this.labelDataTableStyle.Enter += new System.EventHandler(this.LabelDataTableStyle_Enter); + this.labelDataTableStyle.Leave += new System.EventHandler(this.LabelDataTableStyle_Leave); + this.labelDataTableStyle.MouseEnter += new System.EventHandler(this.LabelDataTableStyle_MouseEnter); + this.labelDataTableStyle.MouseLeave += new System.EventHandler(this.LabelDataTableStyle_MouseLeave); + // + // groupBoxQuickDownload + // + this.groupBoxQuickDownload.AccessibleDescription = "Group the Quick download setting"; + this.groupBoxQuickDownload.AccessibleName = "Group the quick download setting"; + this.groupBoxQuickDownload.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; + this.groupBoxQuickDownload.Controls.Add(this.buttonRestoreHost); + this.groupBoxQuickDownload.Controls.Add(this.textBoxHost); + this.groupBoxQuickDownload.Controls.Add(this.labelHost); + this.groupBoxQuickDownload.Controls.Add(this.checkBoxEnableQuickDownload); + this.groupBoxQuickDownload.Location = new System.Drawing.Point(12, 130); + this.groupBoxQuickDownload.Name = "groupBoxQuickDownload"; + this.groupBoxQuickDownload.Size = new System.Drawing.Size(371, 69); + this.groupBoxQuickDownload.TabIndex = 4; + this.groupBoxQuickDownload.TabStop = false; + this.groupBoxQuickDownload.Text = "Quick download"; + // + // textBoxHost + // + this.textBoxHost.AccessibleDescription = "Contents the url of the host"; + this.textBoxHost.AccessibleName = "Host url"; + this.textBoxHost.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; + this.textBoxHost.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.textBoxHost.Location = new System.Drawing.Point(58, 41); + this.textBoxHost.Name = "textBoxHost"; + this.textBoxHost.Size = new System.Drawing.Size(272, 20); + this.textBoxHost.TabIndex = 2; + this.textBoxHost.Text = "http://cdsarc.u-strasbg.fr/ftp/I/239/"; + this.toolTip.SetToolTip(this.textBoxHost, "URL of the host"); + this.textBoxHost.Enter += new System.EventHandler(this.TextBoxHost_Enter); + this.textBoxHost.Leave += new System.EventHandler(this.TextBoxHost_Leave); + this.textBoxHost.MouseEnter += new System.EventHandler(this.TextBoxDefaultHost_MouseEnter); + this.textBoxHost.MouseLeave += new System.EventHandler(this.TextBoxDefaultHost_MouseLeave); + // + // labelHost + // + this.labelHost.AccessibleDescription = "Short description of the host url"; + this.labelHost.AccessibleName = "Host url"; + this.labelHost.AccessibleRole = System.Windows.Forms.AccessibleRole.StatusBar; + this.labelHost.AutoSize = true; + this.labelHost.Location = new System.Drawing.Point(22, 44); + this.labelHost.Name = "labelHost"; + this.labelHost.Size = new System.Drawing.Size(32, 13); + this.labelHost.TabIndex = 1; + this.labelHost.Text = "H&ost:"; + this.toolTip.SetToolTip(this.labelHost, "URL of the host"); + this.labelHost.Enter += new System.EventHandler(this.LabelHost_Enter); + this.labelHost.Leave += new System.EventHandler(this.LabelHost_Leave); + this.labelHost.MouseEnter += new System.EventHandler(this.LabelDefaultHost_MouseEnter); + this.labelHost.MouseLeave += new System.EventHandler(this.LabelDefaultHost_MouseLeave); + // + // checkBoxEnableQuickDownload + // + this.checkBoxEnableQuickDownload.AccessibleDescription = "Check to enable quick download of catalog files"; + this.checkBoxEnableQuickDownload.AccessibleName = "Enable quick download"; + this.checkBoxEnableQuickDownload.AccessibleRole = System.Windows.Forms.AccessibleRole.CheckButton; + this.checkBoxEnableQuickDownload.AutoSize = true; + this.checkBoxEnableQuickDownload.Location = new System.Drawing.Point(7, 20); + this.checkBoxEnableQuickDownload.Name = "checkBoxEnableQuickDownload"; + this.checkBoxEnableQuickDownload.Size = new System.Drawing.Size(208, 17); + this.checkBoxEnableQuickDownload.TabIndex = 0; + this.checkBoxEnableQuickDownload.Text = "Enable &quick download of catalog files"; + this.toolTip.SetToolTip(this.checkBoxEnableQuickDownload, "Check to enable quick download of catalog files"); + this.checkBoxEnableQuickDownload.UseVisualStyleBackColor = true; + this.checkBoxEnableQuickDownload.CheckedChanged += new System.EventHandler(this.CheckBoxEnableQuickDownload_CheckedChanged); + this.checkBoxEnableQuickDownload.Enter += new System.EventHandler(this.CheckBoxEnableQuickDownload_Enter); + this.checkBoxEnableQuickDownload.Leave += new System.EventHandler(this.CheckBoxEnableQuickDownload_Leave); + this.checkBoxEnableQuickDownload.MouseEnter += new System.EventHandler(this.CheckBoxEnableQuickDownload_MouseEnter); + this.checkBoxEnableQuickDownload.MouseLeave += new System.EventHandler(this.CheckBoxEnableQuickDownload_MouseLeave); // // buttonCancel // + this.buttonCancel.AccessibleDescription = "Cancel the settings"; + this.buttonCancel.AccessibleName = "Cancel the settings"; + this.buttonCancel.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.Image = global::Hipparcos_DB.Properties.Resources.fugue_cross_16px_shadowless; - this.buttonCancel.Location = new System.Drawing.Point(302, 25); + this.buttonCancel.Location = new System.Drawing.Point(143, 280); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(75, 23); - this.buttonCancel.TabIndex = 1; + this.buttonCancel.TabIndex = 7; this.buttonCancel.Text = "&Cancel"; this.buttonCancel.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.buttonCancel.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.toolTip.SetToolTip(this.buttonCancel, "Cancel"); this.buttonCancel.UseVisualStyleBackColor = true; - this.buttonCancel.Click += new System.EventHandler(this.ButtonCancel_Click); this.buttonCancel.Enter += new System.EventHandler(this.ButtonCancel_Enter); this.buttonCancel.Leave += new System.EventHandler(this.ButtonCancel_Leave); this.buttonCancel.MouseEnter += new System.EventHandler(this.ButtonCancel_MouseEnter); this.buttonCancel.MouseLeave += new System.EventHandler(this.ButtonCancel_MouseLeave); // - // toolStripStatusLabelInfo - // - this.toolStripStatusLabelInfo.AccessibleDescription = "text with some information"; - this.toolStripStatusLabelInfo.AccessibleName = "information text"; - this.toolStripStatusLabelInfo.AccessibleRole = System.Windows.Forms.AccessibleRole.StaticText; - this.toolStripStatusLabelInfo.AutoToolTip = true; - this.toolStripStatusLabelInfo.DoubleClickEnabled = true; - this.toolStripStatusLabelInfo.Image = global::Hipparcos_DB.Properties.Resources.fugue_information_white_16px_shadowless; - this.toolStripStatusLabelInfo.Name = "toolStripStatusLabelInfo"; - this.toolStripStatusLabelInfo.Size = new System.Drawing.Size(66, 17); - this.toolStripStatusLabelInfo.Text = "info text"; - this.toolStripStatusLabelInfo.MouseEnter += new System.EventHandler(this.ToolStripStatusLabelInfo_MouseEnter); - this.toolStripStatusLabelInfo.MouseLeave += new System.EventHandler(this.ToolStripStatusLabelInfo_MouseLeave); - // - // groupBoxCatalogDirectories - // - this.groupBoxCatalogDirectories.Controls.Add(this.buttonRestoreTychoDirectory); - this.groupBoxCatalogDirectories.Controls.Add(this.buttonRestoreHipparcosDirectory); - this.groupBoxCatalogDirectories.Controls.Add(this.textBoxTychoDirectory); - this.groupBoxCatalogDirectories.Controls.Add(this.labelTychoDirectory); - this.groupBoxCatalogDirectories.Controls.Add(this.textBoxHipparcosDirectory); - this.groupBoxCatalogDirectories.Controls.Add(this.labelHipparcosDirectory); - this.groupBoxCatalogDirectories.Location = new System.Drawing.Point(12, 197); - this.groupBoxCatalogDirectories.Name = "groupBoxCatalogDirectories"; - this.groupBoxCatalogDirectories.Size = new System.Drawing.Size(371, 69); - this.groupBoxCatalogDirectories.TabIndex = 6; - this.groupBoxCatalogDirectories.TabStop = false; - this.groupBoxCatalogDirectories.Text = "Catalog directories"; - // - // textBoxHipparcosDirectory - // - this.textBoxHipparcosDirectory.Location = new System.Drawing.Point(114, 13); - this.textBoxHipparcosDirectory.Name = "textBoxHipparcosDirectory"; - this.textBoxHipparcosDirectory.Size = new System.Drawing.Size(216, 20); - this.textBoxHipparcosDirectory.TabIndex = 1; - this.textBoxHipparcosDirectory.Text = "catalog/i239/"; - this.textBoxHipparcosDirectory.Enter += new System.EventHandler(this.TextBoxHipparcosDirectory_Enter); - this.textBoxHipparcosDirectory.Leave += new System.EventHandler(this.TextBoxHipparcosDirectory_Leave); - this.textBoxHipparcosDirectory.MouseEnter += new System.EventHandler(this.TextBoxHipparcosDirectory_MouseEnter); - this.textBoxHipparcosDirectory.MouseLeave += new System.EventHandler(this.TextBoxHipparcosDirectory_MouseLeave); - // - // labelHipparcosDirectory - // - this.labelHipparcosDirectory.AutoSize = true; - this.labelHipparcosDirectory.Location = new System.Drawing.Point(6, 16); - this.labelHipparcosDirectory.Name = "labelHipparcosDirectory"; - this.labelHipparcosDirectory.Size = new System.Drawing.Size(102, 13); - this.labelHipparcosDirectory.TabIndex = 0; - this.labelHipparcosDirectory.Text = "Hippparcos catalog:"; - this.labelHipparcosDirectory.Enter += new System.EventHandler(this.LabelHipparcosDirectory_Enter); - this.labelHipparcosDirectory.Leave += new System.EventHandler(this.LabelHipparcosDirectory_Leave); - this.labelHipparcosDirectory.MouseEnter += new System.EventHandler(this.LabelHipparcosDirectory_MouseEnter); - this.labelHipparcosDirectory.MouseLeave += new System.EventHandler(this.LabelHipparcosDirectory_MouseLeave); - // - // textBoxTychoDirectory - // - this.textBoxTychoDirectory.Location = new System.Drawing.Point(114, 39); - this.textBoxTychoDirectory.Name = "textBoxTychoDirectory"; - this.textBoxTychoDirectory.Size = new System.Drawing.Size(216, 20); - this.textBoxTychoDirectory.TabIndex = 4; - this.textBoxTychoDirectory.Text = "catalog/i239/"; - this.textBoxTychoDirectory.Enter += new System.EventHandler(this.TextBoxTychoDirectory_Enter); - this.textBoxTychoDirectory.Leave += new System.EventHandler(this.TextBoxTychoDirectory_Leave); - this.textBoxTychoDirectory.MouseEnter += new System.EventHandler(this.TextBoxTychoDirectory_MouseEnter); - this.textBoxTychoDirectory.MouseLeave += new System.EventHandler(this.TextBoxTychoDirectory_MouseLeave); - // - // labelTychoDirectory - // - this.labelTychoDirectory.AutoSize = true; - this.labelTychoDirectory.Location = new System.Drawing.Point(6, 42); - this.labelTychoDirectory.Name = "labelTychoDirectory"; - this.labelTychoDirectory.Size = new System.Drawing.Size(78, 13); - this.labelTychoDirectory.TabIndex = 3; - this.labelTychoDirectory.Text = "Tycho catalog:"; - this.labelTychoDirectory.Enter += new System.EventHandler(this.LabelTychoDirectory_Enter); - this.labelTychoDirectory.Leave += new System.EventHandler(this.LabelTychoDirectory_Leave); - this.labelTychoDirectory.MouseEnter += new System.EventHandler(this.LabelTychoDirectory_MouseEnter); - this.labelTychoDirectory.MouseLeave += new System.EventHandler(this.LabelTychoDirectory_MouseLeave); - // - // buttonRestoreHost - // - this.buttonRestoreHost.Image = global::Hipparcos_DB.Properties.Resources.fugue_arrow_curve_180_left_shadowless; - this.buttonRestoreHost.Location = new System.Drawing.Point(336, 40); - this.buttonRestoreHost.Name = "buttonRestoreHost"; - this.buttonRestoreHost.Size = new System.Drawing.Size(29, 23); - this.buttonRestoreHost.TabIndex = 3; - this.buttonRestoreHost.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; - this.toolTip.SetToolTip(this.buttonRestoreHost, "Restore host"); - this.buttonRestoreHost.UseVisualStyleBackColor = true; - this.buttonRestoreHost.Click += new System.EventHandler(this.ButtonRestoreHost_Click); - this.buttonRestoreHost.Enter += new System.EventHandler(this.ButtonRestoreHost_Enter); - this.buttonRestoreHost.Leave += new System.EventHandler(this.ButtonRestoreHost_Leave); - this.buttonRestoreHost.MouseEnter += new System.EventHandler(this.ButtonRestoreHost_MouseEnter); - this.buttonRestoreHost.MouseLeave += new System.EventHandler(this.ButtonRestoreHost_MouseLeave); - // - // buttonRestoreHipparcosDirectory + // buttonApply // - this.buttonRestoreHipparcosDirectory.Image = global::Hipparcos_DB.Properties.Resources.fugue_arrow_curve_180_left_shadowless; - this.buttonRestoreHipparcosDirectory.Location = new System.Drawing.Point(336, 11); - this.buttonRestoreHipparcosDirectory.Name = "buttonRestoreHipparcosDirectory"; - this.buttonRestoreHipparcosDirectory.Size = new System.Drawing.Size(29, 23); - this.buttonRestoreHipparcosDirectory.TabIndex = 2; - this.buttonRestoreHipparcosDirectory.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; - this.toolTip.SetToolTip(this.buttonRestoreHipparcosDirectory, "Restore Hipparcos catalog directory"); - this.buttonRestoreHipparcosDirectory.UseVisualStyleBackColor = true; - this.buttonRestoreHipparcosDirectory.Click += new System.EventHandler(this.ButtonRestoreHipparcosDirectory_Click); - this.buttonRestoreHipparcosDirectory.Enter += new System.EventHandler(this.ButtonRestoreHipparcosDirectory_Enter); - this.buttonRestoreHipparcosDirectory.Leave += new System.EventHandler(this.ButtonRestoreHipparcosDirectory_Leave); - this.buttonRestoreHipparcosDirectory.MouseEnter += new System.EventHandler(this.ButtonRestoreHipparcosDirectory_MouseEnter); - this.buttonRestoreHipparcosDirectory.MouseLeave += new System.EventHandler(this.ButtonRestoreHipparcosDirectory_MouseLeave); + this.buttonApply.AccessibleDescription = "Apply the settings"; + this.buttonApply.AccessibleName = "Apply the settings"; + this.buttonApply.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.buttonApply.DialogResult = System.Windows.Forms.DialogResult.OK; + this.buttonApply.Image = global::Hipparcos_DB.Properties.Resources.fugue_tick_button_16px_shadowless; + this.buttonApply.Location = new System.Drawing.Point(63, 280); + this.buttonApply.Name = "buttonApply"; + this.buttonApply.Size = new System.Drawing.Size(75, 23); + this.buttonApply.TabIndex = 6; + this.buttonApply.Text = "&Apply"; + this.buttonApply.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.buttonApply.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.toolTip.SetToolTip(this.buttonApply, "Apply"); + this.buttonApply.UseVisualStyleBackColor = true; + this.buttonApply.Click += new System.EventHandler(this.ButtonApply_Click); + this.buttonApply.Enter += new System.EventHandler(this.ButtonApply_Enter); + this.buttonApply.Leave += new System.EventHandler(this.ButtonApply_Leave); + this.buttonApply.MouseEnter += new System.EventHandler(this.ButtonApply_MouseEnter); + this.buttonApply.MouseLeave += new System.EventHandler(this.ButtonApply_MouseLeave); // - // buttonRestoreTychoDirectory - // - this.buttonRestoreTychoDirectory.Image = global::Hipparcos_DB.Properties.Resources.fugue_arrow_curve_180_left_shadowless; - this.buttonRestoreTychoDirectory.Location = new System.Drawing.Point(336, 37); - this.buttonRestoreTychoDirectory.Name = "buttonRestoreTychoDirectory"; - this.buttonRestoreTychoDirectory.Size = new System.Drawing.Size(29, 23); - this.buttonRestoreTychoDirectory.TabIndex = 5; - this.buttonRestoreTychoDirectory.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; - this.toolTip.SetToolTip(this.buttonRestoreTychoDirectory, "Restore Tycho catalog directory"); - this.buttonRestoreTychoDirectory.UseVisualStyleBackColor = true; - this.buttonRestoreTychoDirectory.Click += new System.EventHandler(this.ButtonRestoreTychoDirectory_Click); - this.buttonRestoreTychoDirectory.Enter += new System.EventHandler(this.ButtonRestoreTychoDirectory_Enter); - this.buttonRestoreTychoDirectory.Leave += new System.EventHandler(this.ButtonRestoreTychoDirectory_Leave); - this.buttonRestoreTychoDirectory.MouseEnter += new System.EventHandler(this.ButtonRestoreTychoDirectory_MouseEnter); - this.buttonRestoreTychoDirectory.MouseLeave += new System.EventHandler(this.ButtonRestoreTychoDirectory_MouseLeave); + // comboBoxStartPosition + // + this.comboBoxStartPosition.AccessibleDescription = "list of the start position"; + this.comboBoxStartPosition.AccessibleName = "Start position"; + this.comboBoxStartPosition.AccessibleRole = System.Windows.Forms.AccessibleRole.DropList; + this.comboBoxStartPosition.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxStartPosition.FormattingEnabled = true; + this.comboBoxStartPosition.Items.AddRange(new object[] { + "Center on screen", + "Center on parent window"}); + this.comboBoxStartPosition.Location = new System.Drawing.Point(58, 19); + this.comboBoxStartPosition.Name = "comboBoxStartPosition"; + this.comboBoxStartPosition.Size = new System.Drawing.Size(118, 21); + this.comboBoxStartPosition.TabIndex = 1; + this.toolTip.SetToolTip(this.comboBoxStartPosition, "Start position"); + this.comboBoxStartPosition.Enter += new System.EventHandler(this.ComboBoxStartPosition_Enter); + this.comboBoxStartPosition.Leave += new System.EventHandler(this.ComboBoxStartPosition_Leave); + this.comboBoxStartPosition.MouseEnter += new System.EventHandler(this.ComboBoxStartPosition_MouseEnter); + this.comboBoxStartPosition.MouseLeave += new System.EventHandler(this.ComboBoxStartPosition_MouseLeave); + // + // labelStartPosition + // + this.labelStartPosition.AccessibleDescription = "Short description of the start position"; + this.labelStartPosition.AccessibleName = "Start position"; + this.labelStartPosition.AccessibleRole = System.Windows.Forms.AccessibleRole.StatusBar; + this.labelStartPosition.AutoSize = true; + this.labelStartPosition.Location = new System.Drawing.Point(6, 22); + this.labelStartPosition.Name = "labelStartPosition"; + this.labelStartPosition.Size = new System.Drawing.Size(47, 13); + this.labelStartPosition.TabIndex = 0; + this.labelStartPosition.Text = "&Position:"; + this.toolTip.SetToolTip(this.labelStartPosition, "Start position"); + this.labelStartPosition.Enter += new System.EventHandler(this.LabelStartPosition_Enter); + this.labelStartPosition.Leave += new System.EventHandler(this.LabelStartPosition_Leave); + this.labelStartPosition.MouseEnter += new System.EventHandler(this.LabelStartPosition_MouseEnter); + this.labelStartPosition.MouseLeave += new System.EventHandler(this.LabelStartPosition_MouseLeave); + // + // groupBox1 + // + this.groupBox1.AccessibleDescription = "Group the start position setting"; + this.groupBox1.AccessibleName = "Copy start position grouping"; + this.groupBox1.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; + this.groupBox1.Controls.Add(this.comboBoxStartPosition); + this.groupBox1.Controls.Add(this.labelStartPosition); + this.groupBox1.Location = new System.Drawing.Point(202, 12); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(182, 53); + this.groupBox1.TabIndex = 1; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Start position"; + // + // buttonDefaultSettings + // + this.buttonDefaultSettings.AccessibleDescription = "Restore the settings to default"; + this.buttonDefaultSettings.AccessibleName = "Restore the settings to default"; + this.buttonDefaultSettings.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.buttonDefaultSettings.Image = global::Hipparcos_DB.Properties.Resources.fugue_arrow_curve_180_left_shadowless; + this.buttonDefaultSettings.Location = new System.Drawing.Point(223, 280); + this.buttonDefaultSettings.Name = "buttonDefaultSettings"; + this.buttonDefaultSettings.Size = new System.Drawing.Size(111, 23); + this.buttonDefaultSettings.TabIndex = 8; + this.buttonDefaultSettings.Text = "&Default settings"; + this.buttonDefaultSettings.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.buttonDefaultSettings.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.toolTip.SetToolTip(this.buttonDefaultSettings, "Default settings"); + this.buttonDefaultSettings.UseVisualStyleBackColor = true; + this.buttonDefaultSettings.Click += new System.EventHandler(this.ButtonDefaultSettings_Click); + this.buttonDefaultSettings.Enter += new System.EventHandler(this.ButtonDefaultSettings_Enter); + this.buttonDefaultSettings.Leave += new System.EventHandler(this.ButtonDefaultSettings_Leave); + this.buttonDefaultSettings.MouseEnter += new System.EventHandler(this.ButtonDefaultSettings_MouseEnter); + this.buttonDefaultSettings.MouseLeave += new System.EventHandler(this.ButtonDefaultSettings_MouseLeave); // // OptionsForm // @@ -439,7 +627,7 @@ private void InitializeComponent() this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.buttonCancel; - this.ClientSize = new System.Drawing.Size(396, 300); + this.ClientSize = new System.Drawing.Size(396, 333); this.Controls.Add(this.toolStripContainer); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); @@ -455,16 +643,18 @@ private void InitializeComponent() this.toolStripContainer.ContentPanel.ResumeLayout(false); this.toolStripContainer.ResumeLayout(false); this.toolStripContainer.PerformLayout(); - this.groupBoxQuickDownload.ResumeLayout(false); - this.groupBoxQuickDownload.PerformLayout(); - this.groupBoxDataTableStyle.ResumeLayout(false); - this.groupBoxDataTableStyle.PerformLayout(); - this.groupBoxCopyDataMethod.ResumeLayout(false); - this.groupBoxCopyDataMethod.PerformLayout(); - this.groupBoxHoverEffect.ResumeLayout(false); - this.groupBoxHoverEffect.PerformLayout(); this.groupBoxCatalogDirectories.ResumeLayout(false); this.groupBoxCatalogDirectories.PerformLayout(); + this.groupBoxHoverEffect.ResumeLayout(false); + this.groupBoxHoverEffect.PerformLayout(); + this.groupBoxCopyDataMethod.ResumeLayout(false); + this.groupBoxCopyDataMethod.PerformLayout(); + this.groupBoxDataTableStyle.ResumeLayout(false); + this.groupBoxDataTableStyle.PerformLayout(); + this.groupBoxQuickDownload.ResumeLayout(false); + this.groupBoxQuickDownload.PerformLayout(); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); this.ResumeLayout(false); } @@ -482,8 +672,8 @@ private void InitializeComponent() private System.Windows.Forms.GroupBox groupBoxDataTableStyle; private System.Windows.Forms.ComboBox comboBoxDataTableStyle; private System.Windows.Forms.Label labelDataTableStyle; - private System.Windows.Forms.TextBox textBoxDefaultHost; - private System.Windows.Forms.Label labelDefaultHost; + private System.Windows.Forms.TextBox textBoxHost; + private System.Windows.Forms.Label labelHost; private System.Windows.Forms.GroupBox groupBoxHoverEffect; private System.Windows.Forms.CheckBox checkBoxEnableHoverEffect; private System.Windows.Forms.GroupBox groupBoxCopyDataMethod; @@ -497,5 +687,9 @@ private void InitializeComponent() private System.Windows.Forms.Button buttonRestoreTychoDirectory; private System.Windows.Forms.Button buttonRestoreHipparcosDirectory; private System.Windows.Forms.Button buttonRestoreHost; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.ComboBox comboBoxStartPosition; + private System.Windows.Forms.Label labelStartPosition; + private System.Windows.Forms.Button buttonDefaultSettings; } } \ No newline at end of file diff --git a/OptionsForm.cs b/OptionsForm.cs index c0ee7e7..9800015 100644 --- a/OptionsForm.cs +++ b/OptionsForm.cs @@ -1,403 +1,583 @@ -using System; +using Hipparcos_DB.Properties; +using System; using System.Windows.Forms; namespace Hipparcos_DB { public partial class OptionsForm : Form { + private readonly Settings setting = new Settings(); + public OptionsForm() { InitializeComponent(); } + private void SetStatusbar(string text) + { + toolStripStatusLabelInfo.Text = text; + toolStripStatusLabelInfo.Visible = true; + } + + private void SetStatusbar(object sender, EventArgs e) + { + if (sender is TextBox) + { + SetStatusbar(text: ((TextBox)sender).AccessibleDescription); + } + else if (sender is Button) + { + SetStatusbar(text: ((Button)sender).AccessibleDescription); + } + else if (sender is RadioButton) + { + SetStatusbar(text: ((RadioButton)sender).AccessibleDescription); + } + else if (sender is DateTimePicker) + { + SetStatusbar(text: ((DateTimePicker)sender).AccessibleDescription); + } + else if (sender is Label) + { + SetStatusbar(text: ((Label)sender).AccessibleDescription); + } + else if (sender is PictureBox) + { + SetStatusbar(text: ((PictureBox)sender).AccessibleDescription); + } + else if (sender is ToolStripButton) + { + SetStatusbar(text: ((ToolStripButton)sender).AccessibleDescription); + } + else if (sender is ToolStripMenuItem) + { + SetStatusbar(text: ((ToolStripMenuItem)sender).AccessibleDescription); + } + else if (sender is ToolStripLabel) + { + SetStatusbar(text: ((ToolStripLabel)sender).AccessibleDescription); + } + else if (sender is ToolStripComboBox) + { + SetStatusbar(text: ((ToolStripComboBox)sender).AccessibleDescription); + } + else if (sender is ToolStripDropDown) + { + SetStatusbar(text: ((ToolStripDropDown)sender).AccessibleDescription); + } + else if (sender is ToolStripDropDownButton) + { + SetStatusbar(text: ((ToolStripDropDownButton)sender).AccessibleDescription); + } + else if (sender is ToolStripDropDownItem) + { + SetStatusbar(text: ((ToolStripDropDownItem)sender).AccessibleDescription); + } + else if (sender is ToolStripDropDownMenu) + { + SetStatusbar(text: ((ToolStripDropDownMenu)sender).AccessibleDescription); + } + else if (sender is ToolStripProgressBar) + { + SetStatusbar(text: ((ToolStripProgressBar)sender).AccessibleDescription); + } + else if (sender is ToolStripSplitButton) + { + SetStatusbar(text: ((ToolStripSplitButton)sender).AccessibleDescription); + } + else if (sender is ToolStripSeparator) + { + SetStatusbar(text: ((ToolStripSeparator)sender).AccessibleDescription); + } + else if (sender is ToolStripStatusLabel) + { + SetStatusbar(text: ((ToolStripStatusLabel)sender).AccessibleDescription); + } + else if (sender is ToolStripTextBox) + { + SetStatusbar(text: ((ToolStripTextBox)sender).AccessibleDescription); + } + } + + private void ClearStatusbar() + { + toolStripStatusLabelInfo.Text = string.Empty; + toolStripStatusLabelInfo.Visible = false; + } + private void OptionsForm_Load(object sender, EventArgs e) { - labelDefaultHost.Enabled = textBoxDefaultHost.Enabled = buttonRestoreHost.Enabled = checkBoxEnableQuickDownload.Checked; - comboBoxCopyDataMethod.SelectedItem = 0; - comboBoxDataTableStyle.SelectedItem = 0; - textBoxDefaultHost.Text = "http://cdsarc.u-strasbg.fr/ftp/I/239/"; - textBoxHipparcosDirectory.Text = "catalog/i239/"; - textBoxTychoDirectory.Text = "catalog/i239/"; + ClearStatusbar(); + checkBoxEnableHoverEffect.Checked = setting.UserEnableHoverEffect; + checkBoxEnableQuickDownload.Checked = setting.UserEnableQuickDownload; + labelHost.Enabled = textBoxHost.Enabled = buttonRestoreHost.Enabled = checkBoxEnableQuickDownload.Checked; + comboBoxCopyDataMethod.SelectedIndex = setting.UserCopyDataMethod; + comboBoxDataTableStyle.SelectedIndex = setting.UserDataTableStyle; + comboBoxStartPosition.SelectedIndex = setting.UserStartPosition; + textBoxHost.Text = setting.UserHostName; + textBoxHipparcosDirectory.Text = setting.UserHipparcosCatalogDirectory; + textBoxTychoDirectory.Text = setting.UserTychoCatalogDirectory; + switch (setting.UserStartPosition) + { + case 0: StartPosition = FormStartPosition.CenterScreen; break; + case 1: StartPosition = FormStartPosition.CenterParent; break; + default: StartPosition = FormStartPosition.CenterScreen; break; + } } private void ButtonApply_Enter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void ButtonCancel_Enter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void CheckBoxEnableHoverEffect_Enter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void LabelCopyDataMethod_Enter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void ComboBoxCopyDataMethod_Enter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void LabelDataTableStyle_Enter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void ComboBoxDataTableStyle_Enter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void CheckBoxEnableQuickDownload_Enter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } - private void LabelDefaultHost_Enter(object sender, EventArgs e) + private void LabelHost_Enter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } - private void TextBoxDefaultHost_Enter(object sender, EventArgs e) + private void TextBoxHost_Enter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void LabelHipparcosDirectory_Enter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void TextBoxHipparcosDirectory_Enter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void LabelTychoDirectory_Enter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void TextBoxTychoDirectory_Enter(object sender, EventArgs e) { + SetStatusbar(sender: sender, e: e); + } + private void LabelStartPosition_Enter(object sender, EventArgs e) + { + SetStatusbar(sender: sender, e: e); } - private void ButtonRestoreHost_Enter(object sender, EventArgs e) + private void ComboBoxStartPosition_Enter(object sender, EventArgs e) { + SetStatusbar(sender: sender, e: e); + } + private void ButtonRestoreHost_Enter(object sender, EventArgs e) + { + SetStatusbar(sender: sender, e: e); } private void ButtonRestoreHipparcosDirectory_Enter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void ButtonRestoreTychoDirectory_Enter(object sender, EventArgs e) { + SetStatusbar(sender: sender, e: e); + } + private void ButtonDefaultSettings_Enter(object sender, EventArgs e) + { + SetStatusbar(sender: sender, e: e); } private void ButtonApply_MouseEnter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void ButtonCancel_MouseEnter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void CheckBoxEnableHoverEffect_MouseEnter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void LabelCopyDataMethod_MouseEnter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void ComboBoxCopyDataMethod_MouseEnter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void LabelDataTableStyle_MouseEnter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void ComboBoxDataTableStyle_MouseEnter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void CheckBoxEnableQuickDownload_MouseEnter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void LabelDefaultHost_MouseEnter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void TextBoxDefaultHost_MouseEnter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void LabelHipparcosDirectory_MouseEnter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void TextBoxHipparcosDirectory_MouseEnter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void LabelTychoDirectory_MouseEnter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void TextBoxTychoDirectory_MouseEnter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void ToolStripStatusLabelInfo_MouseEnter(object sender, EventArgs e) { + SetStatusbar(sender: sender, e: e); + } + private void LabelStartPosition_MouseEnter(object sender, EventArgs e) + { + SetStatusbar(sender: sender, e: e); } - private void ButtonRestoreHost_MouseEnter(object sender, EventArgs e) + private void ComboBoxStartPosition_MouseEnter(object sender, EventArgs e) { + SetStatusbar(sender: sender, e: e); + } + private void ButtonRestoreHost_MouseEnter(object sender, EventArgs e) + { + SetStatusbar(sender: sender, e: e); } private void ButtonRestoreHipparcosDirectory_MouseEnter(object sender, EventArgs e) { - + SetStatusbar(sender: sender, e: e); } private void ButtonRestoreTychoDirectory_MouseEnter(object sender, EventArgs e) { + SetStatusbar(sender: sender, e: e); + } + private void ButtonDefaultSettings_MouseEnter(object sender, EventArgs e) + { + SetStatusbar(sender: sender, e: e); } private void ButtonApply_Leave(object sender, EventArgs e) { - + ClearStatusbar(); } private void ButtonCancel_Leave(object sender, EventArgs e) { - + ClearStatusbar(); } private void CheckBoxEnableHoverEffect_Leave(object sender, EventArgs e) { - + ClearStatusbar(); } private void LabelCopyDataMethod_Leave(object sender, EventArgs e) { - + ClearStatusbar(); } private void ComboBoxCopyDataMethod_Leave(object sender, EventArgs e) { - + ClearStatusbar(); } private void LabelDataTableStyle_Leave(object sender, EventArgs e) { - + ClearStatusbar(); } private void ComboBoxDataTableStyle_Leave(object sender, EventArgs e) { - + ClearStatusbar(); } private void CheckBoxEnableQuickDownload_Leave(object sender, EventArgs e) { - + ClearStatusbar(); } - private void LabelDefaultHost_Leave(object sender, EventArgs e) + private void LabelHost_Leave(object sender, EventArgs e) { - + ClearStatusbar(); } - private void TextBoxDefaultHost_Leave(object sender, EventArgs e) + private void TextBoxHost_Leave(object sender, EventArgs e) { - + ClearStatusbar(); } private void LabelHipparcosDirectory_Leave(object sender, EventArgs e) { - + ClearStatusbar(); } private void TextBoxHipparcosDirectory_Leave(object sender, EventArgs e) { - + ClearStatusbar(); } private void LabelTychoDirectory_Leave(object sender, EventArgs e) { - + ClearStatusbar(); } private void TextBoxTychoDirectory_Leave(object sender, EventArgs e) { + ClearStatusbar(); + } + private void LabelStartPosition_Leave(object sender, EventArgs e) + { + ClearStatusbar(); } - private void ButtonApply_MouseLeave(object sender, EventArgs e) + private void ComboBoxStartPosition_Leave(object sender, EventArgs e) { + ClearStatusbar(); + } + private void ButtonApply_MouseLeave(object sender, EventArgs e) + { + ClearStatusbar(); } private void ButtonCancel_MouseLeave(object sender, EventArgs e) { - + ClearStatusbar(); } private void ButtonRestoreHost_Leave(object sender, EventArgs e) { - + ClearStatusbar(); } private void ButtonRestoreHipparcosDirectory_Leave(object sender, EventArgs e) { - + ClearStatusbar(); } private void ButtonRestoreTychoDirectory_Leave(object sender, EventArgs e) { + ClearStatusbar(); + } + private void ButtonDefaultSettings_Leave(object sender, EventArgs e) + { + ClearStatusbar(); } private void CheckBoxEnableHoverEffect_MouseLeave(object sender, EventArgs e) { - + ClearStatusbar(); } private void LabelCopyDataMethod_MouseLeave(object sender, EventArgs e) { - + ClearStatusbar(); } private void ComboBoxCopyDataMethod_MouseLeave(object sender, EventArgs e) { - + ClearStatusbar(); } private void LabelDataTableStyle_MouseLeave(object sender, EventArgs e) { - + ClearStatusbar(); } private void ComboBoxDataTableStyle_MouseLeave(object sender, EventArgs e) { - + ClearStatusbar(); } private void CheckBoxEnableQuickDownload_MouseLeave(object sender, EventArgs e) { - + ClearStatusbar(); } private void LabelDefaultHost_MouseLeave(object sender, EventArgs e) { - + ClearStatusbar(); } private void TextBoxDefaultHost_MouseLeave(object sender, EventArgs e) { - + ClearStatusbar(); } private void LabelHipparcosDirectory_MouseLeave(object sender, EventArgs e) { - + ClearStatusbar(); } private void TextBoxHipparcosDirectory_MouseLeave(object sender, EventArgs e) { - + ClearStatusbar(); } private void LabelTychoDirectory_MouseLeave(object sender, EventArgs e) { - + ClearStatusbar(); } private void TextBoxTychoDirectory_MouseLeave(object sender, EventArgs e) { - + ClearStatusbar(); } private void ToolStripStatusLabelInfo_MouseLeave(object sender, EventArgs e) { + ClearStatusbar(); + } + + private void LabelStartPosition_MouseLeave(object sender, EventArgs e) + { + ClearStatusbar(); + } + private void ComboBoxStartPosition_MouseLeave(object sender, EventArgs e) + { + ClearStatusbar(); } private void ButtonRestoreHost_MouseLeave(object sender, EventArgs e) { - + ClearStatusbar(); } private void ButtonRestoreHipparcosDirectory_MouseLeave(object sender, EventArgs e) { - + ClearStatusbar(); } private void ButtonRestoreTychoDirectory_MouseLeave(object sender, EventArgs e) { + ClearStatusbar(); + } + private void ButtonDefaultSettings_MouseLeave(object sender, EventArgs e) + { + ClearStatusbar(); } private void ButtonApply_Click(object sender, EventArgs e) { - + setting.UserEnableHoverEffect = checkBoxEnableHoverEffect.Checked; + setting.UserCopyDataMethod = (byte)comboBoxCopyDataMethod.SelectedIndex; + setting.UserDataTableStyle = (byte)comboBoxDataTableStyle.SelectedIndex; + setting.UserEnableQuickDownload = checkBoxEnableQuickDownload.Checked; + setting.UserHostName = textBoxHost.Text; + setting.UserHipparcosCatalogDirectory = textBoxHipparcosDirectory.Text; + setting.UserTychoCatalogDirectory = textBoxTychoDirectory.Text; + setting.UserStartPosition = (byte)comboBoxStartPosition.SelectedIndex; + setting.Save(); } - private void ButtonCancel_Click(object sender, EventArgs e) + private void ButtonDefaultSettings_Click(object sender, EventArgs e) { - + checkBoxEnableHoverEffect.Checked = setting.DefaultEnableHoverEffect; + comboBoxStartPosition.SelectedIndex = setting.DefaultStartPosition; + comboBoxCopyDataMethod.SelectedIndex = setting.DefaultCopyDataMethod; + comboBoxDataTableStyle.SelectedIndex = setting.DefaultDataTableStyle; + checkBoxEnableQuickDownload.Checked = setting.DefaultEnableQuickDownload; + textBoxHost.Text = setting.DefaultHostName; + textBoxHipparcosDirectory.Text = setting.DefaultHipparcosCatalogDirectory; + textBoxTychoDirectory.Text = setting.DefaultTychoCatalogDirectory; } private void ButtonRestoreHost_Click(object sender, EventArgs e) { - + textBoxHost.Text = setting.DefaultHostName; } private void ButtonRestoreHipparcosDirectory_Click(object sender, EventArgs e) { - + textBoxHipparcosDirectory.Text = setting.DefaultHipparcosCatalogDirectory; } private void ButtonRestoreTychoDirectory_Click(object sender, EventArgs e) { - + textBoxTychoDirectory.Text = setting.DefaultTychoCatalogDirectory; } private void CheckBoxEnableQuickDownload_CheckedChanged(object sender, EventArgs e) { - labelDefaultHost.Enabled = textBoxDefaultHost.Enabled = buttonRestoreHost.Enabled = checkBoxEnableQuickDownload.Checked; + labelHost.Enabled = textBoxHost.Enabled = buttonRestoreHost.Enabled = checkBoxEnableQuickDownload.Checked; } } -} +} \ No newline at end of file diff --git a/OptionsForm.resx b/OptionsForm.resx index fa6b468..a24d8e3 100644 --- a/OptionsForm.resx +++ b/OptionsForm.resx @@ -121,7 +121,7 @@ 12, 17 - 121, 17 + 106, 20 diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index e4e1f6d..402880d 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -32,7 +32,7 @@ // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // indem Sie "*" wie unten gezeigt eingeben: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.4.0.15")] -[assembly: AssemblyFileVersion("0.4.0.15")] +[assembly: AssemblyVersion("0.4.1.16")] +[assembly: AssemblyFileVersion("0.4.1.16")] [assembly: NeutralResourcesLanguage("en")] diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs index 6176221..3af8dfd 100644 --- a/Properties/Settings.Designer.cs +++ b/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ namespace Hipparcos_DB.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.2.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); @@ -22,5 +22,173 @@ public static Settings Default { return defaultInstance; } } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("http://cdsarc.u-strasbg.fr/ftp/I/239/")] + public string DefaultHostName { + get { + return ((string)(this["DefaultHostName"])); + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("http://cdsarc.u-strasbg.fr/ftp/I/239/")] + public string UserHostName { + get { + return ((string)(this["UserHostName"])); + } + set { + this["UserHostName"] = value; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("catalog/i239/")] + public string DefaultHipparcosCatalogDirectory { + get { + return ((string)(this["DefaultHipparcosCatalogDirectory"])); + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("catalog/i239/")] + public string UserHipparcosCatalogDirectory { + get { + return ((string)(this["UserHipparcosCatalogDirectory"])); + } + set { + this["UserHipparcosCatalogDirectory"] = value; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("catalog/i239/")] + public string DefaultTychoCatalogDirectory { + get { + return ((string)(this["DefaultTychoCatalogDirectory"])); + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("catalog/i239/")] + public string UserTychoCatalogDirectory { + get { + return ((string)(this["UserTychoCatalogDirectory"])); + } + set { + this["UserTychoCatalogDirectory"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool UserEnableHoverEffect { + get { + return ((bool)(this["UserEnableHoverEffect"])); + } + set { + this["UserEnableHoverEffect"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("0")] + public byte UserCopyDataMethod { + get { + return ((byte)(this["UserCopyDataMethod"])); + } + set { + this["UserCopyDataMethod"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("0")] + public byte UserDataTableStyle { + get { + return ((byte)(this["UserDataTableStyle"])); + } + set { + this["UserDataTableStyle"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool UserEnableQuickDownload { + get { + return ((bool)(this["UserEnableQuickDownload"])); + } + set { + this["UserEnableQuickDownload"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("0")] + public byte UserStartPosition { + get { + return ((byte)(this["UserStartPosition"])); + } + set { + this["UserStartPosition"] = value; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("0")] + public byte DefaultStartPosition { + get { + return ((byte)(this["DefaultStartPosition"])); + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool DefaultEnableQuickDownload { + get { + return ((bool)(this["DefaultEnableQuickDownload"])); + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool DefaultEnableHoverEffect { + get { + return ((bool)(this["DefaultEnableHoverEffect"])); + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("0")] + public byte DefaultDataTableStyle { + get { + return ((byte)(this["DefaultDataTableStyle"])); + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("0")] + public byte DefaultCopyDataMethod { + get { + return ((byte)(this["DefaultCopyDataMethod"])); + } + } } } diff --git a/Properties/Settings.settings b/Properties/Settings.settings index abf36c5..a012527 100644 --- a/Properties/Settings.settings +++ b/Properties/Settings.settings @@ -1,7 +1,54 @@  - - - - - - + + + + + http://cdsarc.u-strasbg.fr/ftp/I/239/ + + + http://cdsarc.u-strasbg.fr/ftp/I/239/ + + + catalog/i239/ + + + catalog/i239/ + + + catalog/i239/ + + + catalog/i239/ + + + True + + + 0 + + + 0 + + + False + + + 0 + + + 0 + + + False + + + True + + + 0 + + + 0 + + + \ No newline at end of file diff --git a/app.config b/app.config index e2b0e10..5c4b231 100644 --- a/app.config +++ b/app.config @@ -1,5 +1,13 @@ + + +
+ + +
+ + @@ -7,4 +15,60 @@ + + + + http://cdsarc.u-strasbg.fr/ftp/I/239/ + + + catalog/i239/ + + + catalog/i239/ + + + 0 + + + False + + + True + + + 0 + + + 0 + + + + + + + http://cdsarc.u-strasbg.fr/ftp/I/239/ + + + catalog/i239/ + + + catalog/i239/ + + + True + + + 0 + + + 0 + + + False + + + 0 + + +