static void Main() { EqBridge kernel = null; try { kernel = new EqBridge(true); } catch (HaskellRuntimeException e) { MessageBox.Show( e.Message , "Error in initilalisation" , MessageBoxButtons.OK , MessageBoxIcon.Error); } catch (DllNotFoundException) { MessageBox.Show( "The application is installed incorectly" , "Missing an application part" , MessageBoxButtons.OK , MessageBoxIcon.Error ); } if (kernel != null) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new EqMainView(kernel)); } }
public EqMainView(EqBridge kernel) { InitializeComponent(); computationKernel = kernel; }