コード例 #1
0
ファイル: InfoFile.cs プロジェクト: biddyweb/communicator
 public InfoFile(Remwave.Client.MailService.FileInfo info)
 {
     Time = info.Time;
     Day = info.Day;
     Month = info.Month;
     Year = info.Year;
     From = info.From;
     Tags = info.Tags;
     FileName = info.FileName;
     FileSize = info.FileSize;
 }
コード例 #2
0
 void mDeleteService_VoiceMail_DeleteMessageCompleted(object sender, Remwave.Client.MailService.VoiceMail_DeleteMessageCompletedEventArgs e)
 {
     if (e.Error != null || e.Cancelled)
     {
         Console.WriteLine("DeleteMessageCompleted : Failed" + e.Result.ToString());
     }
     mDeleteService.VoiceMail_DeleteMessageCompleted -= new Remwave.Client.MailService.VoiceMail_DeleteMessageCompletedEventHandler(mDeleteService_VoiceMail_DeleteMessageCompleted);
 }
コード例 #3
0
        void searchService_utilsSearchUserCompleted(object sender, Remwave.Client.RSIFeaturesWS.utilsSearchUserCompletedEventArgs e)
        {
            try
            {
                btnUserFind.Enabled = true;
                pbarSearchProgressBar.Visible = false;
                pbarSearchProgressBar.EndWaiting();

                List<UserSearchResult> searchResult = new List<UserSearchResult>();

                if (e.Error != null) return;
                if (e.Result != null)
                {
                    string[] result = e.Result;
                    if (result[0].Length<7) return;
                    foreach (string item in result)
                    {
                        UserSearchResult resultItem = new UserSearchResult();
                        try
                        {
                            string[] items = item.Split(new string[] { ";" }, StringSplitOptions.None);
                            //$first_name.";".$last_name.";".$city.";".$company.";".$country_name.";".$username.";".$comment_data
                            resultItem.Company = items[3] == null ? "" : items[3];
                            resultItem.FirstName = items[0] == null ? "" : items[0];
                            resultItem.LastName = items[1] == null ? "" : items[1];
                            resultItem.Region = items[2] == null ? "" : items[2];
                            resultItem.Country = items[4] == null ? "" : items[4];
                            resultItem.Username = items[5] == null ? "" : items[5];
                            resultItem.Comment = items[6] == null ? "" : items[6];
                            searchResult.Add(resultItem);
                        }
                        catch (Exception)
                        {
                           
                        }
                    }
                    DisplayResults(searchResult);
                }
            }
            catch (Exception)
            {
                
            }
        }
コード例 #4
0
ファイル: MainForm.cs プロジェクト: biddyweb/communicator
        void clientUpdateWS_VersionCompleted(object sender, Remwave.Client.ClientUpdateWS.VersionCompletedEventArgs e)
        {
            try
            {
                if (e.Error != null) return;
                if (e.Result != null)
                {
                    string[] version = e.Result;
                    ClientUpdateWS.Service clientUpdateWS = new Remwave.Client.ClientUpdateWS.Service();
                    if (Application.ProductVersion.CompareTo(version[0]) < 0)
                    {
                        //force update
                        string downloadlink = clientUpdateWS.Software();
                        if (MessageBox.Show(this,
                            Properties.Localization.txtInfoNewVersion,
                            Properties.Localization.txtInfoUpdateAvaliable,
                            MessageBoxButtons.OKCancel,
                            MessageBoxIcon.Information
                            ) == DialogResult.OK)
                        {
                            System.Diagnostics.Process.Start(downloadlink);
                            Application.Exit();
                        };
                    }

                    if (myClientConfiguration.LastNews.CompareTo(version[1]) < 0)
                    {
                        //display news
                        string newsLink = clientUpdateWS.News();
                        System.Diagnostics.Process.Start(newsLink);
                        myClientConfiguration.LastNews = version[1];
                    }
                }
            }
            catch (Exception ex)
            {
#if (TRACE)
                Console.WriteLine("clientUpdateWS_VersionCompleted : " + ex.Message);
#endif
            }
        }
コード例 #5
0
ファイル: MainForm.cs プロジェクト: biddyweb/communicator
 void ss_servicePrepaidAmountCompleted(object sender, Remwave.Client.RSIFeaturesWS.servicePrepaidAmountCompletedEventArgs e)
 {
     try
     {
         if (e.Error != null) return;
         myPrepaidAmountToolStripLabel.Text = e.Result.ToString();
     }
     catch (Exception)
     {
         myPrepaidAmountToolStripLabel.Text = "0.00";
     }
     myPrepaidAmountRefreshToolStripLabel.Visible = true;
 }
コード例 #6
0
ファイル: Remwave.cs プロジェクト: biddyweb/communicator
 void ss_clientPrepaidAmountCompleted(object sender, Remwave.Client.RSIFeaturesWS.clientPrepaidAmountCompletedEventArgs e)
 {
     try
     {
         myPrepaidAmountToolStripLabel.Text = e.Result.ToString();
     }
     catch (Exception)
     {
         myPrepaidAmountToolStripLabel.Text = "0.00";
         ;
     }
     myPrepaidAmountRefreshToolStripLabel.Visible = true;
 }