Exemple #1
0
        private void getPrepaidStatus()
        {
            myPrepaidAmountRefreshToolStripLabel.Visible = false;

            try
            {


                Remwave.Client.RSIFeaturesWS.Service ss = new Remwave.Client.RSIFeaturesWS.Service(myClientConfiguration.RSIUrl);

                ss.clientPrepaidAmountCompleted += new Remwave.Client.RSIFeaturesWS.clientPrepaidAmountCompletedEventHandler(ss_clientPrepaidAmountCompleted);
                ss.clientPrepaidAmountAsync(myUserAccount.Username, myUserAccount.Password);

            }
            catch (Exception)
            {
                ;
            }

        }
Exemple #2
0
        void myPhone2PhoneWindow_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (myPhone2PhoneWindow.StartCall)
            {
                string result = "-1";
                try
                {
                    RSIFeaturesWS.Service nikotalkWS = new Remwave.Client.RSIFeaturesWS.Service(myClientConfiguration.RSIUrl);
                    result = nikotalkWS.clientCallNow(myUserAccount.Username, myUserAccount.Password, myPhone2PhoneWindow.CallFrom, myPhone2PhoneWindow.CallTo);
                }
                catch (Exception)
                {


                }
                if (result == "0")
                {
                    myClientNotifyIcon.ShowBalloonTip(10, "Phone 2 Phone Call", "Trying call  : " + myPhone2PhoneWindow.CallFrom + " to " + myPhone2PhoneWindow.CallTo, ToolTipIcon.Info);
                }
                else   if (result == "2")
                {
                    myClientNotifyIcon.ShowBalloonTip(10, "Phone 2 Phone Call", "Unable to start call - Payment Required : " + myPhone2PhoneWindow.CallFrom + " to " + myPhone2PhoneWindow.CallTo, ToolTipIcon.Error);
                }
                else
                {
                    myClientNotifyIcon.ShowBalloonTip(10, "Phone 2 Phone Call", "Unable to start call : " + myPhone2PhoneWindow.CallFrom + " to " + myPhone2PhoneWindow.CallTo, ToolTipIcon.Error);
                }
            }
        }