private void Init() { // check files if (!File.Exists(_previewProject)) { throw new Exception("Preview project not found:" + Environment.NewLine + _previewProject); } if (!File.Exists(_macroPath)) { throw new Exception("Macro not found:" + Environment.NewLine + _macroPath); } // start eplan _eplanOffline = new EplanOffline(Starter.GetBinPathLastVersion()); // Needed if its an OfflineApplication _eplanOffline.StartWpf(this); if (!_eplanOffline.IsRunning) { throw new Exception("EPLAN not running"); } // Init preview _preview = new Sepla.Gui.Preview(previewBorder, _previewProject); // display _preview.Display(_macroPath, PreviewType.WindowMacro); }
private void Init() { // check files if (!File.Exists(_previewProject)) { throw new Exception("Preview project not found:" + Environment.NewLine + _previewProject); } if (!File.Exists(_macroPath)) { throw new Exception("Macro not found:" + Environment.NewLine + _macroPath); } // start eplan _eplanOffline = new EplanOffline(Starter.GetBinPathLastVersion()); // Needed if its an OfflineApplication _eplanOffline.StartWpf(this); if (!_eplanOffline.IsRunning) { throw new Exception("EPLAN not running"); } // Init preview _preview = new Sepla.Gui.Preview(previewBorder, _previewProject); // display _preview.Display(_macroPath, PreviewType.WindowMacro); }
private void Init() { // check files if (!File.Exists(_previewProject)) { throw new Exception("Preview project not found:" + Environment.NewLine + _previewProject); } if (!File.Exists(_macroPath)) { throw new Exception("Macro not found:" + Environment.NewLine + _macroPath); } // start eplan string binPath = @"C:\Program Files\EPLAN\Electric P8\2.5.4\Bin"; Starter.PinToEplan(binPath); _eplanOffline = new EplanOffline(binPath); _eplanOffline.StartWpf(this); if (!_eplanOffline.IsRunning) { throw new Exception("EPLAN not running"); } // setup preview _preview = new Sepla.Gui.Preview(previewBorder, _previewProject); // display _preview.Display(_macroPath, PreviewType.PageMacro); }
private void Init() { // check files if (!File.Exists(_previewProject)) { throw new Exception("Preview project not found:" + Environment.NewLine + _previewProject); } if (!File.Exists(_macroPath)) { throw new Exception("Macro not found:" + Environment.NewLine + _macroPath); } // start eplan string binPath = @"C:\Program Files\EPLAN\Electric P8\2.7.3\Bin"; Starter.PinToEplan(binPath); _eplanOffline = new EplanOffline(binPath, "API"); _eplanOffline.StartWpf(this); if (!_eplanOffline.IsRunning) { throw new Exception("EPLAN not running"); } // setup preview _preview = new Sepla.Gui.Preview(previewBorder, _previewProject); // display _preview.Display(_macroPath, PreviewType.PageMacro); }