Skip to content

Commit

Permalink
add link to Varjo survey
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardberger committed Jun 30, 2023
1 parent 5dd1462 commit 713319f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
19 changes: 17 additions & 2 deletions OpticalAdjustmentGUI/Form1.Designer.cs

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

19 changes: 19 additions & 0 deletions OpticalAdjustmentGUI/Form1.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Diagnostics;
using System.Globalization;
using System.Security.Policy;

namespace OpticalAdjustmentGUI
{
Expand Down Expand Up @@ -178,5 +179,23 @@ private void btnSave_Click(object sender, EventArgs e)
{
this.save(this.value);
}

private void button1_Click_1(object sender, EventArgs e)
{
string surveyUrl = "https://survey-eu1.hsforms.com/1WFHW3LFKRCe-_LaO0_m_cAfa586";
try
{
Process.Start(new ProcessStartInfo() { FileName = surveyUrl, UseShellExecute = true });
}
catch (System.ComponentModel.Win32Exception noBrowser)
{
if (noBrowser.ErrorCode == -2147467259)
MessageBox.Show(noBrowser.Message);
}
catch (System.Exception other)
{
MessageBox.Show(other.Message);
}
}
}
}

0 comments on commit 713319f

Please sign in to comment.