protected override bool DoInitialize() { try { _frmMain = new FrmMain(); _frmMain.axCIDv51.OnCallerID += axCIDv51_OnCallerID; _frmMain.axCIDv51.Start(); return true; } catch (Exception) { InteractionService.UserIntraction.DisplayPopup("", Resources.Information, Resources.CallerIdDriverError); return false; } }
public CidMonitor() { try { var frmMain = new FrmMain(); frmMain.axCIDv51.OnCallerID += axCIDv51_OnCallerID; frmMain.axCIDv51.Start(); } catch (Exception) { #if DEBUG var i = 0; #else InteractionService.UserIntraction.DisplayPopup(Resources.Information, Resources.CallerIdDriverError, "", ""); #endif } }
public void Initialize() { if (IsInitialized) return; CustomerType = _cacheService.GetEntityTypes().SingleOrDefault(x => x.Name == Resources.Customers); try { var frmMain = new FrmMain(); frmMain.axCIDv51.OnCallerID += axCIDv51_OnCallerID; frmMain.axCIDv51.Start(); IsInitialized = true; } catch (Exception) { #if DEBUG var i = 0; #else InteractionService.UserIntraction.DisplayPopup(Resources.Information, Resources.CallerIdDriverError); #endif } }
protected override void DoFinalize() { _frmMain.Dispose(); _frmMain = null; }