Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
 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
     }
 }
Ejemplo n.º 3
0
 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
     }
 }
Ejemplo n.º 4
0
 protected override void DoFinalize()
 {
     _frmMain.Dispose();
     _frmMain = null;
 }