diff --git a/CatalogueChooserForm.Designer.cs b/CatalogueChooserForm.Designer.cs new file mode 100644 index 0000000..407749d --- /dev/null +++ b/CatalogueChooserForm.Designer.cs @@ -0,0 +1,163 @@ +namespace Hipparcos_DB +{ + partial class CatalogueChooserForm + { + /// + /// Erforderliche Designervariable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Verwendete Ressourcen bereinigen. + /// + /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Windows Form-Designer generierter Code + + /// + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.buttonOpenHipparcosCatalogue = new System.Windows.Forms.Button(); + this.buttonOpenTychoCatalogue = new System.Windows.Forms.Button(); + this.buttonExit = new System.Windows.Forms.Button(); + this.toolTip = new System.Windows.Forms.ToolTip(this.components); + this.panel = new System.Windows.Forms.Panel(); + this.statusStrip = new System.Windows.Forms.StatusStrip(); + this.toolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel(); + this.panel.SuspendLayout(); + this.statusStrip.SuspendLayout(); + this.SuspendLayout(); + // + // buttonOpenHipparcosCatalogue + // + this.buttonOpenHipparcosCatalogue.AccessibleDescription = "Open the Hipparcos Catalogue"; + this.buttonOpenHipparcosCatalogue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.buttonOpenHipparcosCatalogue.Location = new System.Drawing.Point(3, 3); + this.buttonOpenHipparcosCatalogue.Name = "buttonOpenHipparcosCatalogue"; + this.buttonOpenHipparcosCatalogue.Size = new System.Drawing.Size(160, 23); + this.buttonOpenHipparcosCatalogue.TabIndex = 0; + this.buttonOpenHipparcosCatalogue.Text = "&Hipparcos Catalogue"; + this.toolTip.SetToolTip(this.buttonOpenHipparcosCatalogue, "Open the Hipparcos Catalogue"); + this.buttonOpenHipparcosCatalogue.UseVisualStyleBackColor = true; + this.buttonOpenHipparcosCatalogue.Click += new System.EventHandler(this.ButtonOpenHipparcosCatalogue_Click); + this.buttonOpenHipparcosCatalogue.Enter += new System.EventHandler(this.ButtonOpenHipparcosCatalogue_Enter); + this.buttonOpenHipparcosCatalogue.Leave += new System.EventHandler(this.ButtonOpenHipparcosCatalogue_Leave); + this.buttonOpenHipparcosCatalogue.MouseEnter += new System.EventHandler(this.ButtonOpenHipparcosCatalogue_MouseEnter); + this.buttonOpenHipparcosCatalogue.MouseLeave += new System.EventHandler(this.ButtonOpenHipparcosCatalogue_MouseLeave); + // + // buttonOpenTychoCatalogue + // + this.buttonOpenTychoCatalogue.AccessibleDescription = "Open the Tycho Catalogue"; + this.buttonOpenTychoCatalogue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.buttonOpenTychoCatalogue.Enabled = false; + this.buttonOpenTychoCatalogue.Location = new System.Drawing.Point(3, 32); + this.buttonOpenTychoCatalogue.Name = "buttonOpenTychoCatalogue"; + this.buttonOpenTychoCatalogue.Size = new System.Drawing.Size(160, 23); + this.buttonOpenTychoCatalogue.TabIndex = 1; + this.buttonOpenTychoCatalogue.Text = "&Tycho Catalogue"; + this.toolTip.SetToolTip(this.buttonOpenTychoCatalogue, "Open the Tycho Catalogue"); + this.buttonOpenTychoCatalogue.UseVisualStyleBackColor = true; + this.buttonOpenTychoCatalogue.Click += new System.EventHandler(this.ButtonOpenTychoCatalogue_Click); + this.buttonOpenTychoCatalogue.Enter += new System.EventHandler(this.ButtonOpenTychoCatalogue_Enter); + this.buttonOpenTychoCatalogue.Leave += new System.EventHandler(this.ButtonOpenTychoCatalogue_Leave); + this.buttonOpenTychoCatalogue.MouseEnter += new System.EventHandler(this.ButtonOpenTychoCatalogue_MouseEnter); + this.buttonOpenTychoCatalogue.MouseLeave += new System.EventHandler(this.ButtonOpenTychoCatalogue_MouseLeave); + // + // buttonExit + // + this.buttonExit.AccessibleDescription = "Exit the application"; + this.buttonExit.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.buttonExit.BackColor = System.Drawing.Color.Transparent; + this.buttonExit.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.buttonExit.Location = new System.Drawing.Point(12, 92); + this.buttonExit.Name = "buttonExit"; + this.buttonExit.Size = new System.Drawing.Size(168, 23); + this.buttonExit.TabIndex = 1; + this.buttonExit.Text = "E&xit"; + this.toolTip.SetToolTip(this.buttonExit, "Exit the application"); + this.buttonExit.UseVisualStyleBackColor = false; + this.buttonExit.Click += new System.EventHandler(this.ButtonExit_Click); + this.buttonExit.Enter += new System.EventHandler(this.ButtonExit_Enter); + this.buttonExit.Leave += new System.EventHandler(this.ButtonExit_Leave); + this.buttonExit.MouseEnter += new System.EventHandler(this.ButtonExit_MouseEnter); + this.buttonExit.MouseLeave += new System.EventHandler(this.ButtonExit_MouseLeave); + // + // panel + // + this.panel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.panel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel.Controls.Add(this.buttonOpenHipparcosCatalogue); + this.panel.Controls.Add(this.buttonOpenTychoCatalogue); + this.panel.Cursor = System.Windows.Forms.Cursors.Default; + this.panel.Location = new System.Drawing.Point(12, 12); + this.panel.Name = "panel"; + this.panel.Size = new System.Drawing.Size(168, 63); + this.panel.TabIndex = 0; + // + // statusStrip + // + this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripStatusLabel}); + this.statusStrip.Location = new System.Drawing.Point(0, 128); + this.statusStrip.Name = "statusStrip"; + this.statusStrip.Size = new System.Drawing.Size(192, 22); + this.statusStrip.SizingGrip = false; + this.statusStrip.TabIndex = 4; + this.statusStrip.Text = "statusStrip"; + // + // toolStripStatusLabel + // + this.toolStripStatusLabel.Name = "toolStripStatusLabel"; + this.toolStripStatusLabel.Size = new System.Drawing.Size(50, 17); + this.toolStripStatusLabel.Text = "info text"; + // + // CatalogueChooserForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(192, 150); + this.Controls.Add(this.statusStrip); + this.Controls.Add(this.panel); + this.Controls.Add(this.buttonExit); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; + this.MaximizeBox = false; + this.Name = "CatalogueChooserForm"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Catalogue Chooser"; + this.Load += new System.EventHandler(this.CatalogueChooserForm_Load); + this.panel.ResumeLayout(false); + this.statusStrip.ResumeLayout(false); + this.statusStrip.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button buttonOpenHipparcosCatalogue; + private System.Windows.Forms.Button buttonOpenTychoCatalogue; + private System.Windows.Forms.Button buttonExit; + private System.Windows.Forms.ToolTip toolTip; + private System.Windows.Forms.Panel panel; + private System.Windows.Forms.StatusStrip statusStrip; + private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel; + } +} + diff --git a/CatalogueChooserForm.cs b/CatalogueChooserForm.cs new file mode 100644 index 0000000..0612a0c --- /dev/null +++ b/CatalogueChooserForm.cs @@ -0,0 +1,101 @@ +using System; +using System.Windows.Forms; + +namespace Hipparcos_DB +{ + public partial class CatalogueChooserForm : Form + { + public CatalogueChooserForm() + { + InitializeComponent(); + } + + private void SetStatusbar(string text) + { + toolStripStatusLabel.Text = text; + } + + private void ClearStatusbar() + { + toolStripStatusLabel.Text = string.Empty; + } + + private void CatalogueChooserForm_Load(object sender, EventArgs e) + { + ClearStatusbar(); + } + + private void ButtonOpenHipparcosCatalogue_Click(object sender, EventArgs e) + { + } + + private void ButtonOpenTychoCatalogue_Click(object sender, EventArgs e) + { + } + + private void ButtonExit_Click(object sender, EventArgs e) + { + Close(); + } + + private void ButtonOpenHipparcosCatalogue_Enter(object sender, EventArgs e) + { + SetStatusbar(text: buttonOpenHipparcosCatalogue.AccessibleDescription); + } + + private void ButtonOpenTychoCatalogue_Enter(object sender, EventArgs e) + { + SetStatusbar(text: buttonOpenTychoCatalogue.AccessibleDescription); + } + + private void ButtonExit_Enter(object sender, EventArgs e) + { + SetStatusbar(text: buttonExit.AccessibleDescription); + } + + private void ButtonOpenHipparcosCatalogue_MouseEnter(object sender, EventArgs e) + { + SetStatusbar(text: buttonOpenHipparcosCatalogue.AccessibleDescription); + } + + private void ButtonOpenTychoCatalogue_MouseEnter(object sender, EventArgs e) + { + SetStatusbar(text: buttonOpenTychoCatalogue.AccessibleDescription); + } + + private void ButtonExit_MouseEnter(object sender, EventArgs e) + { + SetStatusbar(text: buttonExit.AccessibleDescription); + } + + private void ButtonOpenHipparcosCatalogue_Leave(object sender, EventArgs e) + { + ClearStatusbar(); + } + + private void ButtonOpenTychoCatalogue_Leave(object sender, EventArgs e) + { + ClearStatusbar(); + } + + private void ButtonExit_Leave(object sender, EventArgs e) + { + ClearStatusbar(); + } + + private void ButtonOpenHipparcosCatalogue_MouseLeave(object sender, EventArgs e) + { + ClearStatusbar(); + } + + private void ButtonOpenTychoCatalogue_MouseLeave(object sender, EventArgs e) + { + ClearStatusbar(); + } + + private void ButtonExit_MouseLeave(object sender, EventArgs e) + { + ClearStatusbar(); + } + } +} diff --git a/CatalogueChooserForm.resx b/CatalogueChooserForm.resx new file mode 100644 index 0000000..a6b4037 --- /dev/null +++ b/CatalogueChooserForm.resx @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 17, 17 + + + 107, 17 + + + 73 + + \ No newline at end of file diff --git a/Hipparcos-DB.csproj b/Hipparcos-DB.csproj new file mode 100644 index 0000000..419bd4d --- /dev/null +++ b/Hipparcos-DB.csproj @@ -0,0 +1,120 @@ + + + + + Debug + AnyCPU + {DFA97EB0-FE03-4A39-BD8B-C08438875DEC} + WinExe + Hipparcos_DB + Hipparcos-DB + v4.0 + 512 + true + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + true + + + true + bin\x64\Debug\ + DEBUG;TRACE + full + x64 + prompt + MinimumRecommendedRules.ruleset + + + bin\x64\Release\ + TRACE + true + pdbonly + x64 + true + prompt + MinimumRecommendedRules.ruleset + + + + + + + + + + + + + + + + Form + + + CatalogueChooserForm.cs + + + + + CatalogueChooserForm.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + False + .NET Framework 3.5 SP1 + false + + + + \ No newline at end of file diff --git a/Hipparcos-DB.csproj.user b/Hipparcos-DB.csproj.user new file mode 100644 index 0000000..a543d89 --- /dev/null +++ b/Hipparcos-DB.csproj.user @@ -0,0 +1,13 @@ + + + + publish\ + + + + + + de-DE + false + + \ No newline at end of file diff --git a/Hipparcos-DB.sln b/Hipparcos-DB.sln new file mode 100644 index 0000000..09148b8 --- /dev/null +++ b/Hipparcos-DB.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.28729.10 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hipparcos-DB", "Hipparcos-DB.csproj", "{DFA97EB0-FE03-4A39-BD8B-C08438875DEC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {DFA97EB0-FE03-4A39-BD8B-C08438875DEC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DFA97EB0-FE03-4A39-BD8B-C08438875DEC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DFA97EB0-FE03-4A39-BD8B-C08438875DEC}.Debug|x64.ActiveCfg = Debug|x64 + {DFA97EB0-FE03-4A39-BD8B-C08438875DEC}.Debug|x64.Build.0 = Debug|x64 + {DFA97EB0-FE03-4A39-BD8B-C08438875DEC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DFA97EB0-FE03-4A39-BD8B-C08438875DEC}.Release|Any CPU.Build.0 = Release|Any CPU + {DFA97EB0-FE03-4A39-BD8B-C08438875DEC}.Release|x64.ActiveCfg = Release|x64 + {DFA97EB0-FE03-4A39-BD8B-C08438875DEC}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {900A89F5-CA81-4751-901F-7E50A1AD1D9E} + EndGlobalSection +EndGlobal diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..14e4823 --- /dev/null +++ b/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Hipparcos_DB +{ + static class Program + { + /// + /// Der Haupteinstiegspunkt für die Anwendung. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new CatalogueChooserForm()); + } + } +} diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..ac6319b --- /dev/null +++ b/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("Hipparcos-DB")] +[assembly: AssemblyDescription("Viewer for the Hipparcos Catalogue and the Tycho Catalogue")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Mijo Software")] +[assembly: AssemblyProduct("Hipparcos-DB")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("Hipparcos-DB")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly +// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("dfa97eb0-fe03-4a39-bd8b-c08438875dec")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// 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.0.1.1")] +[assembly: AssemblyFileVersion("0.0.0.1")] diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs new file mode 100644 index 0000000..473a477 --- /dev/null +++ b/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion: 4.0.30319.42000 +// +// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn +// der Code neu generiert wird. +// +//------------------------------------------------------------------------------ + +namespace Hipparcos_DB.Properties +{ + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse + // über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Hipparcos_DB.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/Properties/Resources.resx b/Properties/Resources.resx new file mode 100644 index 0000000..ffecec8 --- /dev/null +++ b/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs new file mode 100644 index 0000000..f647770 --- /dev/null +++ b/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Hipparcos_DB.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Properties/Settings.settings b/Properties/Settings.settings new file mode 100644 index 0000000..abf36c5 --- /dev/null +++ b/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + +