Ejemplo n.º 1
0
 public void FncThreadLoadDock()
 {
     try
     {
         this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, objdelLoadDock, country, city);
     }
     catch (Exception exp)
     {
         exp.Data.Add("My Key", "FncThreadLoadDock()--:--UCWeather.xaml.cs--:--" + exp.Message + " :--:--");
         ClsException.LogError(exp);
         ClsException.WriteToErrorLogFile(exp);
     }
 }
Ejemplo n.º 2
0
 public void SendDTMF(string number, int Channel)
 {
     try
     {
         _Channels[Channel - 1].fncSendDTMF(number);
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Common--:--Audio--:--Audio.Business--:--RTCClient.cs--:--SendDTMF()--");
         ClsException.LogError(ex);
         ClsException.WriteToErrorLogFile(ex);
     }
 }
Ejemplo n.º 3
0
 public void fncAnser()
 {
     try
     {
         osession.Answer();
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Business--:--RTCAudio.cs--:--OnIRTCSessionStateChangeEvent()--");
         ClsException.LogError(ex);
         ClsException.WriteToErrorLogFile(ex);
     }
 }
Ejemplo n.º 4
0
 private void Dispose(bool disposing)
 {
     try
     {
         ClsException.WriteToLogFile("Dispose Calling in P2P Presentation");
         objNetTcpPresentation     = null;
         channelNettcpPresentation = null;
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "Dispose(bool disposing)", "P2PPresentationClient.cs");
     }
 }
Ejemplo n.º 5
0
 void FunThreadNetStatus(object temp)
 {
     try
     {
         this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, objDelFunctionNetStatus, temp);
     }
     catch (Exception exp)
     {
         exp.Data.Add("My Key", "FunThreadNetStatus()--:--UCWeather.xaml.cs--:--" + exp.Message + " :--:--");
         ClsException.LogError(exp);
         ClsException.WriteToErrorLogFile(exp);
     }
 }
Ejemplo n.º 6
0
 private void Dispose(bool disposing)
 {
     try
     {
         ClsException.WriteToLogFile("Dispose calling in P2P WhiteBoard");
         objNetTcpWhiteBoardp    = null;
         channelNettcpWhiteBoard = null;
     }
     catch (Exception exp)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "Dispose()", "P2PWhiteBoardClient.cs");
     }
 }
Ejemplo n.º 7
0
 public void fncTransfer(string Number)
 {
     try
     {
         oSessionCallControl.Refer("sip:" + Number + "@" + SIPCredentials.SIPServer, "");
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Business--:--RTCAudio.cs--:--OnIRTCSessionStateChangeEvent()--");
         ClsException.LogError(ex);
         ClsException.WriteToErrorLogFile(ex);
     }
 }
Ejemplo n.º 8
0
        // private bool disposed;

        public void Dispose()
        {
            try
            {
                ClsException.WriteToLogFile("CALLING DISPOSE(TRUE)");
                Dispose(true);
                GC.SuppressFinalize(this);
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "Dispose", "ChatDummy.cs");
            }
        }
Ejemplo n.º 9
0
 void fncInvokeCmbChange()
 {
     try
     {
         this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, objInvokeCmbChange);
     }
     catch (Exception exp)
     {
         exp.Data.Add("My Key", "fncInvokeCmbChange()--:--UCWeather.xaml.cs--:--" + exp.Message + " :--:--");
         ClsException.LogError(exp);
         ClsException.WriteToErrorLogFile(exp);
     }
 }
Ejemplo n.º 10
0
 void AudioDummy_EntsvcStartConference(string uName, string strConfNumber, string[] GuestName)
 {
     try
     {
         NetTcpAudioChannel.svcP2PStartConference(uName, strConfNumber, GuestName);
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Presentation--:--AudioDummy.cs--:--AudioDummy_EntsvcStartConference()--");
         ClsException.LogError(ex);
         ClsException.WriteToErrorLogFile(ex);
     }
 }
Ejemplo n.º 11
0
 private void finished(IAsyncResult results)
 {
     try
     {
         objDelFunctionNetStatus.EndInvoke(results);
     }
     catch (Exception exp)
     {
         exp.Data.Add("My Key", "finished()--:--ctlOurNews.xaml.cs--:--" + exp.Message + " :--:--");
         ClsException.LogError(exp);
         ClsException.WriteToErrorLogFile(exp);
     }
 }
Ejemplo n.º 12
0
 void AudioDummy_EntsvcUnjoin(string uName)
 {
     try
     {
         NetTcpAudioChannel.Close();
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Presentation--:--AudioDummy.cs--:--AudioDummy_EntsvcUnjoin()--");
         ClsException.LogError(ex);
         ClsException.WriteToErrorLogFile(ex);
     }
 }
Ejemplo n.º 13
0
 void FncThreadFillCanvas(object obj)
 {
     try
     {
         this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, objdelFncFillCanvas, parameter);
     }
     catch (Exception exp)
     {
         exp.Data.Add("My Key", "FncThreadFillCanvas()--:--ctlOurNews.xaml.cs--:--" + exp.Message + " :--:--");
         ClsException.LogError(exp);
         ClsException.WriteToErrorLogFile(exp);
     }
 }
Ejemplo n.º 14
0
 private void Dispose(bool disposing)
 {
     try
     {
         ClsException.WriteToLogFile("Dispose calling in P2P FileSearch");
         objNetTcpFileSearch       = null;
         channelNettcpFileTransfer = null;
     }
     catch (Exception exp)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "Dispose", "P2PFileSearchClient.cs");
     }
 }
Ejemplo n.º 15
0
        void cbxFeeds_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            try
            {
                System.Windows.Controls.ComboBox     temp            = (System.Windows.Controls.ComboBox)sender;
                System.Windows.Controls.ComboBoxItem CurrentCatagory = (System.Windows.Controls.ComboBoxItem)temp.SelectedItem;
                if (CurrentCatagory.Tag.ToString().Contains("cnn"))
                {
                    newsType = 1;
                    System.Windows.Controls.Primitives.ToggleButton tb = (cbxFeeds.Template.FindName("ToggleButton", cbxFeeds) as System.Windows.Controls.Primitives.ToggleButton);
                    (tb.Template.FindName("lblNewsProvider", tb) as Label).Content = "CNN.com";
                    //lblNewsProvider.Content = "CNN News";
                }
                else
                {
                    newsType = 0;
                    System.Windows.Controls.Primitives.ToggleButton tb = (cbxFeeds.Template.FindName("ToggleButton", cbxFeeds) as System.Windows.Controls.Primitives.ToggleButton);
                    (tb.Template.FindName("lblNewsProvider", tb) as Label).Content = "IBN-Live.com";
                    //lblNewsProvider.Content = "IBN-Live";
                }

                #region logging
                StringBuilder sb = new StringBuilder();
                sb.AppendLine("News module: user chane the selection catagory ");
                sb.AppendLine("user selected the catagory: " + CurrentCatagory.ToString());
                sb.AppendLine(sb1.ToString());
                VMuktiAPI.ClsLogging.WriteToTresslog(sb);
                #endregion

                #region clearing wrappanel
                wrapPanel.Children.Clear();
                lblNetStatus.Content    = "Loading...";
                lblNetStatus.Visibility = Visibility.Visible;
                border1.Visibility      = Visibility.Collapsed;
                #endregion

                #region get news on selection chang
                System.Threading.Thread objthreadFncFillCanvas = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(FncThreadFillCanvas));
                objthreadFncFillCanvas.IsBackground = true;
                objthreadFncFillCanvas.Priority     = System.Threading.ThreadPriority.Normal;
                parameter = CurrentCatagory.Tag;
                objthreadFncFillCanvas.Start(parameter);
                #endregion
            }
            catch (Exception exp)
            {
                exp.Data.Add("My Key", "cbxFeeds_SelectionChanged()--:--ctlOurNews.xaml.cs--:--" + exp.Message + " :--:--");
                ClsException.LogError(exp);
                ClsException.WriteToErrorLogFile(exp);
            }
        }
Ejemplo n.º 16
0
 public DataSet DispositionList_GetByID(Int64 ID)
 {
     try
     {
         return ExecuteDataSet("spGDispositionList", CommandType.StoredProcedure, CreateParameter("@pID", SqlDbType.BigInt, ID));
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--DispositionList--:--DispositionList.DataAccess--:--ClsDispositionListDataService.cs--:--DispositionList_GetByID()--");
         ClsException.LogError(ex);
         ClsException.WriteToErrorLogFile(ex);
         return null;
     } 
 }
Ejemplo n.º 17
0
 public void svcRecordedFileUnJoin(clsMessageContract mcRFUnJoin)
 {
     try
     {
         if (EntsvcRecordedFileUnJoin != null)
         {
             EntsvcRecordedFileUnJoin(mcRFUnJoin);
         }
     }
     catch (Exception ex)
     {
         ClsException.WriteToLogFile("svcRecordedFileUnJoin() :- NetP2PBootStrapRecordedFileDelegate.cs" + ex.Message);
     }
 }
Ejemplo n.º 18
0
 public void svcSendRecordedFiles(clsMessageContract mcSendRecordedFiles)
 {
     try
     {
         if (EntsvcSendRecordedFiles != null)
         {
             EntsvcSendRecordedFiles(mcSendRecordedFiles);
         }
     }
     catch (Exception ex)
     {
         ClsException.WriteToLogFile("svcSendRecordedFiles() :- NetP2PBootStrapRecordedFileDelegate.cs" + ex.Message);
     }
 }
Ejemplo n.º 19
0
 public void DispositionList_Delete(Int64 ID)
 {
     try
     {
         ExecuteNonQuery("spDDispositionList", CreateParameter("@pID", SqlDbType.BigInt, ID));
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--DispositionList--:--DispositionList.DataAccess--:--ClsDispositionListDataService.cs--:--DispositionList_Delete()--");
         ClsException.LogError(ex);
         ClsException.WriteToErrorLogFile(ex);
        
     } 
 }
Ejemplo n.º 20
0
 ////////////////////////////////////////////////////////////////////////
 // Connection and Transaction Methods
 ////////////////////////////////////////////////////////////////////////
 protected static string GetConnectionString()
 {
     try
     {
         return VMuktiAPI.VMuktiInfo.MainConnectionString;
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--Campaign--:--Campaign.DataAccess--:--ClsDataerviceBase.cs--:--GetConnectionString()--");
         ClsException.LogError(ex);
         ClsException.WriteToErrorLogFile(ex);
         return null;
     } 
 }
Ejemplo n.º 21
0
 public EvzItem()
 {
     try
     {
         this.InitializeComponent();
         txtTitle.MouseDown += new System.Windows.Input.MouseButtonEventHandler(txtTitle_MouseDown);
     }
     catch (Exception exp)
     {
         exp.Data.Add("My Key", "EvzItem()--:--EvzItem.xaml.cs--:--" + exp.Message + " :--:--");
         ClsException.LogError(exp);
         ClsException.WriteToErrorLogFile(exp);
     }
 }
Ejemplo n.º 22
0
 string AudioDummy_EntsvcGetConference(string uName)
 {
     try
     {
         return(lstMessage[0].strConfNumber.ToString());
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Presentation--:--AudioDummy.cs--:--AudioDummy_EntsvcGetConference()--");
         ClsException.LogError(ex);
         ClsException.WriteToErrorLogFile(ex);
         return(null);
     }
 }
Ejemplo n.º 23
0
 public override void ReorderArgumentArray(ref object[] args,
                                           object state
                                           )
 {
     try
     {
         throw new NotImplementedException();
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "--ReorderArgumentArray()---VMukti--:--VmuktiModules--:--Collaborative--:--Video.Presentation--:--DomainBinder.cs--:");
         ClsException.LogError(ex);
         ClsException.WriteToErrorLogFile(ex);
     }
 }
Ejemplo n.º 24
0
 public DataSet Filter_GetName(string FormatName)
 {
     try
     {
         return(ExecuteDataSet("select distinct Treatment.TreatmentName as FilterName, Treatment.ID from Treatment,TreatmentCondition where Treatment.ID=TreatmentCondition.TreatmentID and TreatmentCondition.LeadFormatID='" + FormatName + "';", CommandType.Text, null));
         //return ExecuteDataSet("select Treatment.ID,TreatmentName as FilterName,Description,Type,TreatmentConditionNew.ID as TreatmentCondID,FieldID,Operator,FieldValues from Treatment,TreatmentConditionNew where Treatment.IsDeleted = 0 and Treatment.Type = 'Filter' and Treatment.Id = TreatmentConditionNew.TreatmentID;", CommandType.Text, null);
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--ImportLeads--:--ImportLeads.DataAccess--:--ClsImportLeadsDataService.cs--:--Timezone_GetAll()--");
         ClsException.LogError(ex);
         ClsException.WriteToErrorLogFile(ex);
         return(null);
     }
 }
Ejemplo n.º 25
0
        void fncCnvMain()
        {
            try
            {
                cnvMain.Visibility = Visibility.Visible;
                cnvlbl.Visibility  = Visibility.Collapsed;
            }

            catch (Exception exp)
            {
                exp.Data.Add("My Key", "fncCnvMain()--:--UCWeather.xaml.cs--:--" + exp.Message + " :--:--");
                ClsException.LogError(exp);
                ClsException.WriteToErrorLogFile(exp);
            }
        }
Ejemplo n.º 26
0
 void AudioDummy_EntsvcP2PStartConference(string uName, string strConfNumber, string[] GuestInfo)
 {
     try
     {
         clsMessage objMessage = new clsMessage();
         objMessage.strConfNumber = strConfNumber;
         lstMessage.Add(objMessage);
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Presentation--:--AudioDummy.cs--:--AudioDummy_EntsvcP2PStartConference()--");
         ClsException.LogError(ex);
         ClsException.WriteToErrorLogFile(ex);
     }
 }
Ejemplo n.º 27
0
 public DataSet DispositionList_GetAll()
 {
     try
     {
         return ExecuteDataSet("Select * from vDispositionList;", CommandType.Text, null);
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--Call Center--:--DispositionList--:--DispositionList.DataAccess--:--ClsDispositionListDataService.cs--:--DispositionList_GetAll()--");
         ClsException.LogError(ex);
         ClsException.WriteToErrorLogFile(ex);
         return null;
     } 
     
 }
Ejemplo n.º 28
0
 public static bool OpenScreenRecordingClient()
 {
     try
     {
         chHTTPScreenRecordingChannel = (IHTTPScreenRecordingService)bhcHttpScreenRecordingService.OpenClient <IHTTPScreenRecordingService>("http://" + VMuktiInfo.CurrentPeer.SuperNodeIP + ":80/VMukti/ScreenRecording");
         chHTTPScreenRecordingChannel.svcJoin(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName);
         return(true);
     }
     catch (Exception exp)
     {
         exp.Data.Add("My Key", "OpenScreenRecordingClient()--:--ClsScreenRecordingClient.cs--:--" + exp.Message + " :--:--");
         ClsException.LogError(exp);
         ClsException.WriteToErrorLogFile(exp);
         return(false);
     }
 }
Ejemplo n.º 29
0
 void ScreenRecordingServer_EntSvcUnJoin(string uName)
 {
     try
     {
         if (prc.ProcessName == uName)
         {
         }
     }
     catch (Exception exp)
     {
         exp.Data.Add("My Key", "ScreenRecordingServer_EntSvcUnJoin()--:--ScreenRecordingServer.cs--:--" + exp.Message + " :--:--");
         ClsException.LogError(exp);
         ClsException.WriteToErrorLogFile(exp);
         //return 0;
     }
 }
Ejemplo n.º 30
0
 void dt_Tick(object sender, EventArgs e)
 {
     try
     {
         string sprofile = "<provision key='5B29C449-29EE-4fd8-9E3F-04AED077690E' name=\"Asterisk\"> \n <user account='" + SIPCredentials.SIPNumber + "' password='******' uri='SIP:" + SIPCredentials.SIPNumber + "@" + SIPCredentials.SIPServer + "' /> <sipsrv addr='" + SIPCredentials.SIPServer + "' protocol='udp' auth='digest' role='registrar'> <session party='first' type='pc2ph' /> </sipsrv> </provision>\n\r";
         this.profile = ((IRTCProfile2)(this.oclient.CreateProfile(sprofile)));
         this.oclient.EnableProfile(this.oclient.CreateProfile(sprofile), 15);
         dt.Stop();
     }
     catch (Exception ex)
     {
         ex.Data.Add("My Key", "VMukti--:--VmuktiModules--:--VmuktiModules--:--Call Center--:--AutoProgressiveSoftPhone--:--AutoProgressivePhone.Business--:--RTCAudio.cs--:--OnIRTCSessionStateChangeEvent()--");
         ClsException.LogError(ex);
         ClsException.WriteToErrorLogFile(ex);
     }
 }