Пример #1
0
 /// <summary>
 /// Starts the application without Gui
 /// </summary>
 private void Start()
 {
     if (!IsRunning)
     {
         try
         {
             EplApplication eplApplication = new EplApplication();
             eplApplication.EplanBinFolder = BinPath;
             if (!string.IsNullOrEmpty(SystemConfiguration))
             {
                 eplApplication.SystemConfiguration = SystemConfiguration;
             }
             if (!string.IsNullOrEmpty(LicenseFile))
             {
                 eplApplication.LicenseFile = LicenseFile; // Set specific licence
             }
             eplApplication.QuietMode = EplApplication.QuietModes.ShowAllDialogs;
             eplApplication.Init("", true, true);
             Application = eplApplication;
         }
         catch
         {
             Application = null;
         }
     }
 }
Пример #2
0
 public void SetFrame(IntPtr f)
 {
     APP = new EplApplication
     {
         EplanBinFolder = FindEplan.Find()
     };
     APP.Init("");
     APP.SetMainFrame(f);
 }