63 lines
1.6 KiB
C#
63 lines
1.6 KiB
C#
namespace WinForms;
|
|
|
|
public partial class Form1 : Form
|
|
{
|
|
public Form1() =>
|
|
InitializeComponent();
|
|
|
|
private void Form_Load(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
_BaseDirectory.Text = AppContext.BaseDirectory;
|
|
_CurrentDirectory.Text = Environment.CurrentDirectory;
|
|
_CommandLineArgs.Text = string.Join(' ', Environment.GetCommandLineArgs());
|
|
_WebBrowser.Navigate("https://oi-metrology-viewer-prod.mes.infineon.com/Export");
|
|
}
|
|
catch (Exception ex) { CatchException(ex); }
|
|
}
|
|
|
|
private static void CatchException(Exception ex) =>
|
|
_ = MessageBox.Show(ex.StackTrace, ex.Message);
|
|
|
|
private void Go_Click(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
Environment.ExitCode = 1;
|
|
Application.Exit();
|
|
}
|
|
catch (Exception ex) { CatchException(ex); }
|
|
}
|
|
|
|
private void NoGo_Click(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
Environment.ExitCode = 2;
|
|
Application.Exit();
|
|
}
|
|
catch (Exception ex) { CatchException(ex); }
|
|
}
|
|
|
|
private void Cancel_Click(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
Environment.ExitCode = -1;
|
|
Application.Exit();
|
|
}
|
|
catch (Exception ex) { CatchException(ex); }
|
|
}
|
|
|
|
private void WebBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
|
|
{
|
|
try
|
|
{
|
|
_WebBrowser.Visible = true;
|
|
}
|
|
catch (Exception ex) { CatchException(ex); }
|
|
}
|
|
|
|
}
|