示例#1
0
        private void ctxMenu_SMS_Click(object sender, RoutedEventArgs e)
        {
            if (this.contactValue == null || String.IsNullOrEmpty(this.contactValue.UriString))
            {
                return;
            }

            MediaActionHanler.SendSMS(this.contactValue.UriString);
        }
 private void menuItemSendSMS_Click(object sender, RoutedEventArgs e)
 {
     if (!String.IsNullOrEmpty(this.textBoxFreeContact.Text))
     {
         String remoteUri = UriUtils.GetValidSipUri(this.textBoxFreeContact.Text);
         if (!String.IsNullOrEmpty(remoteUri))
         {
             MediaActionHanler.SendSMS(remoteUri);
         }
     }
 }
 private void buttonMessaging_Click(object sender, RoutedEventArgs e)
 {
     if (!String.IsNullOrEmpty(this.textBoxFreeContact.Text))
     {
         String remoteUri = UriUtils.GetValidSipUri(this.textBoxFreeContact.Text);
         if (!String.IsNullOrEmpty(remoteUri))
         {
             MediaActionHanler.StartChat(remoteUri);
         }
     }
 }
 private void buttonVisio_Click(object sender, RoutedEventArgs e)
 {
     if (!String.IsNullOrEmpty(this.textBoxFreeContact.Text))
     {
         String remoteUri = UriUtils.GetValidSipUri(this.textBoxFreeContact.Text);
         if (!String.IsNullOrEmpty(remoteUri))
         {
             MediaActionHanler.MakeVideoCall(remoteUri);
         }
     }
 }
示例#5
0
 private void buttonMessaging_Click(object sender, RoutedEventArgs e)
 {
     if (!String.IsNullOrEmpty(this.textBoxFreeContact.Text))
     {
         String remoteUri = UriUtils.GetValidSipUri(this.textBoxFreeContact.Text);
         if (!String.IsNullOrEmpty(remoteUri))
         {
             MediaActionHanler.StartChat(remoteUri);
             this.textBoxFreeContact.Text = String.Empty;
         }
     }
     else
     {
         HistoryEvent @event = this.historyService.Events.FirstOrDefault((x) => { return((x.MediaType & MediaType.Messaging) != MediaType.None); });
         if (@event != null && !String.IsNullOrEmpty(@event.RemoteParty))
         {
             this.textBoxFreeContact.Text = UriUtils.GetUserName(@event.RemoteParty);
         }
     }
 }
 private void ctxMenu_SendSMS_Click(object sender, RoutedEventArgs e)
 {
     MediaActionHanler.SendSMS(this.Value.RemoteParty);
 }
 private void ctxMenu_MakeVideoCall_Click(object sender, RoutedEventArgs e)
 {
     MediaActionHanler.MakeVideoCall(this.Value.RemoteParty);
 }
 private void ctxMenu_MakeVoiceCall_Click(object sender, RoutedEventArgs e)
 {
     MediaActionHanler.MakeAudioCall([email protected]);
 }
 private void ctxMenu_StartChat_Click(object sender, RoutedEventArgs e)
 {
     MediaActionHanler.StartChat([email protected]);
 }
示例#10
0
 private void ctxMenu_SendFile_Click(object sender, RoutedEventArgs e)
 {
     MediaActionHanler.SendFile([email protected], null);
 }