Skip to content

Commit

Permalink
update to 0.3.2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohne authored Sep 25, 2019
1 parent 9282599 commit 84624f6
Show file tree
Hide file tree
Showing 10 changed files with 187 additions and 73 deletions.
84 changes: 45 additions & 39 deletions CatalogChooserForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,46 @@ private void CatalogChooserForm_Load(object sender, EventArgs e)
*/
ClearStatusbar();
}

#region Click event handlers

private void ButtonOpenTychoCatalog_Click(object sender, EventArgs e)
{
throw new NotImplementedException();
}

private void ButtonInfo_Click(object sender, EventArgs e)
{
using (AboutBoxForm formAboutBox = new AboutBoxForm())
{
formAboutBox.ShowDialog();
}
}

private void ButtonExit_Click(object sender, EventArgs e)
{
Close();
}

private void ButtonDownloadHipparcosCatalog_Click(object sender, EventArgs e)
{
using (DownloaderForm downloaderForm = new DownloaderForm())
{
downloaderForm.SetHost(host: "http://cdsarc.u-strasbg.fr/ftp/I/239/");
//downloaderForm.SetHost(host: "http://cdsarc.u-strasbg.fr/viz-bin/nph-Cat/txt.gz?I/239/");
downloaderForm.SetHostUrls(files: filesHipparcosCatalog);
downloaderForm.SetCatalogDirectory(directory: "catalogs/i239/");
downloaderForm.ShowDialog();
}
}

private void ButtonDownloadTychoCatalog_Click(object sender, EventArgs e)
{
using (DownloaderForm downloaderForm = new DownloaderForm())
{
downloaderForm.ShowDialog();
}
}

private void ButtonOpenHipparcosCatalog_Click(object sender, EventArgs e)
{
Expand All @@ -162,7 +202,10 @@ private void ButtonOpenHipparcosCatalog_Click(object sender, EventArgs e)
}
if (allFilesFound)
{
new HipparcosCatalogViewerForm().ShowDialog();
using (HipparcosCatalogViewerForm formHipparcosCatalogViewer = new HipparcosCatalogViewerForm())
{
formHipparcosCatalogViewer.ShowDialog();
}
}
else
{
Expand All @@ -174,23 +217,6 @@ private void ButtonOpenHipparcosCatalog_Click(object sender, EventArgs e)
}
}

#region Click event handlers

private void ButtonOpenTychoCatalog_Click(object sender, EventArgs e)
{
throw new NotImplementedException();
}

private void ButtonInfo_Click(object sender, EventArgs e)
{
new AboutBoxForm().ShowDialog();
}

private void ButtonExit_Click(object sender, EventArgs e)
{
Close();
}

#endregion

#region Enter event handlers
Expand Down Expand Up @@ -285,26 +311,6 @@ private void ButtonExit_MouseLeave(object sender, EventArgs e)
ClearStatusbar();
}

#endregion

private void ButtonDownloadHipparcosCatalog_Click(object sender, EventArgs e)
{
using (DownloaderForm downloaderForm = new DownloaderForm())
{
downloaderForm.SetHost(host: "http://cdsarc.u-strasbg.fr/ftp/I/239/");
//downloaderForm.SetHost(host: "http://cdsarc.u-strasbg.fr/viz-bin/nph-Cat/txt.gz?I/239/");
downloaderForm.SetHostUrls(files: filesHipparcosCatalog);
downloaderForm.SetCatalogDirectory(directory: "catalogs/i239/");
downloaderForm.ShowDialog();
}
}

private void ButtonDownloadTychoCatalog_Click(object sender, EventArgs e)
{
using (DownloaderForm downloaderForm = new DownloaderForm())
{
downloaderForm.ShowDialog();
}
}
#endregion
}
}
58 changes: 44 additions & 14 deletions DownloaderForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 84624f6

Please sign in to comment.