Ejemplo n.º 1
0
 public void ClosePod()
 {
     try
     {
         VMuktiHelper.UnRegisterEvent("SetChannelValues");
         VMuktiHelper.UnRegisterEvent("Logoff");
         VMuktiHelper.UnRegisterEvent("AllModulesLoaded");
         VMuktiHelper.UnRegisterEvent("SetDialerEnable");
         VMuktiHelper.UnRegisterEvent("SetChannelStatus");
         VMuktiHelper.UnRegisterEvent("SetDisposition");
         channelManager.CallExit();
         if (channelNetTcpDialer != null)
         {
             channelNetTcpDialer.svcUnJoin(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName);
             channelNetTcpDialer.Close();
             channelNetTcpDialer = null;
         }
         if (channelNetTcpUploadRecorededFiles != null)
         {
             channelNetTcpUploadRecorededFiles.Close();
             channelNetTcpUploadRecorededFiles = null;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Exception under ClosePod: " + ex.Message);
         VMuktiHelper.ExceptionHandler(ex, "ClosePod()", "MyDialer.xaml.cs");
     }
 }
Ejemplo n.º 2
0
 void Current_Exit(object sender, ExitEventArgs e)
 {
     try
     {
         VMuktiHelper.UnRegisterEvent("SetChannelValues");
         VMuktiHelper.UnRegisterEvent("Logoff");
         VMuktiHelper.UnRegisterEvent("AllModulesLoaded");
         VMuktiHelper.UnRegisterEvent("SetDialerEnable");
         VMuktiHelper.UnRegisterEvent("SetChannelStatus");
         VMuktiHelper.UnRegisterEvent("SetDisposition");
         channelManager.CallExit();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Exception under Current_Exit: " + ex.Message);
         VMuktiHelper.ExceptionHandler(ex, "Current_Exit()", "MyDialer.xaml.cs");
     }
 }
Ejemplo n.º 3
0
 void Current_Exit(object sender, ExitEventArgs e)
 {
     try
     {
         if (blApplicationExit == true)
         {
             if (sCallingType == "AutoMatic")
             {
                 VMuktiHelper.CallEvent("SetDisposition", this, new VMuktiEventArgs(100, "None", false, null, sCurrentChannelID));
             }
             else if (sCallingType == "Predictive")
             {
                 VMuktiHelper.CallEvent("SetDispositionForPredictive", this, new VMuktiEventArgs(100, "None", false, null, sCurrentChannelID));
             }
         }
         VMuktiHelper.UnRegisterEvent("SetCampaignID");
         VMuktiHelper.UnRegisterEvent("SetDispositionEnable");
         VMuktiHelper.UnRegisterEvent("SetDispositionButtonClickEvent");
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "Current_Exit()", "CtlDispositionRender.xaml.cs");
     }
 }
Ejemplo n.º 4
0
        void onExit()
        {
            try
            {
                if (!isExitCalled)
                {
                    VMuktiHelper.UnRegisterEvent("SetDispositionForPredictive");
                    VMuktiHelper.UnRegisterEvent("SetChannelStatusForPredictive");

                    if (CallInfoChannel != null)
                    {
                        CallInfoChannel.Close();
                        CallInfoChannel.Dispose();
                        CallInfoChannel = null;
                    }
                    isExitCalled = true;
                }
                objChannelManager.CallExit();
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "onExit()", "PredictiveDialer.xaml.cs");
            }
        }