コード例 #1
0
ファイル: MainForm.cs プロジェクト: JackTing/OpenStudio
 public MainForm()
 {
     try
     {
         m_runmanager = new OpenStudio.RunManager(new OpenStudio.Path("runmanager.db"));
     }
     catch (Exception e)
     {
       MessageBox.Show("It appears that there was an error accessing the C# SWIG Bindings for OpenStudio. Note that the libraries installed in <installdir>/CSharp/zerokit need to be accessable to this application at runtime, either through the path or in the same directory as the exe. Nothing else will work properly have this point.\n\nError Text: " + e.InnerException.InnerException.Message, "Error loading libraries");
     }
    
     InitializeComponent();
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: sasobadovinac/OpenStudio
        public MainForm()
        {
            try
            {
                m_runmanager = new OpenStudio.RunManager(new OpenStudio.Path("runmanager.db"));
            }
            catch (Exception e)
            {
                MessageBox.Show("It appears that there was an error accessing the C# SWIG Bindings for OpenStudio. Note that the libraries installed in <installdir>/CSharp/openstudio need to be accessible to this application at runtime, either through the path or in the same directory as the exe. Nothing else will work properly have this point.\n\nError Text: " + e.InnerException.InnerException.Message, "Error loading libraries");
            }

            InitializeComponent();
        }