Exemple #1
0
 private async void btnContactBySms_Click(object sender, RoutedEventArgs e)
 {
     if (contactModel == null)
     {
         return;
     }
     if (contactModel.fromPhoneNumber != string.Empty &&
         contactModel.toPhoneNumber != string.Empty &&
         contactModel.toUserName != string.Empty &&
         contactModel.taskTitle != string.Empty)
     {
         if (flagContactMode == Constants.FlagContactMode.AskTask)
         {
             await ContactHelper.ComposeSms(contactModel.toPhoneNumber, Constants.ContactContent.SmsBody_AskTask(
                                                contactModel.fromUserName, contactModel.fromPhoneNumber, contactModel.taskTitle));
         }
         else if (flagContactMode == Constants.FlagContactMode.PublishTask)
         {
             await ContactHelper.ComposeSms(contactModel.toPhoneNumber, Constants.ContactContent.SmsBody_PublishTask(
                                                contactModel.fromUserName, contactModel.taskTitle));
         }
     }
 }