Inheritance: IDisposable
Beispiel #1
0
        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));
            }
        }
Beispiel #2
0
 public EqMainView(EqBridge kernel)
 {
     InitializeComponent();
     computationKernel = kernel;
 }