private async void btnSend_Click(object sender, RoutedEventArgs e) { Button button = sender as Button; SmsDialog smsDialog = new SmsDialog("111", button.Content.ToString()); await smsDialog.ShowAsync(); }
private async void btnSend_Click(object sender, RoutedEventArgs e) { PackageMigration clickedItem = (PackageMigration)(sender as Button).DataContext; SmsDialog smsDialog = new SmsDialog(clickedItem.send_to, clickedItem.package_code); await smsDialog.ShowAsync(); }
private async void Button_Click(object sender, RoutedEventArgs e) { UsefulContactViewModel clickedItem = (UsefulContactViewModel)(sender as Button).DataContext; if (!String.IsNullOrEmpty(clickedItem.DialCode)) { Windows.ApplicationModel.Calls.PhoneCallManager.ShowPhoneCallUI(clickedItem.DialCode, "Voice Package"); } else if (!String.IsNullOrEmpty(clickedItem.MessageBody)) { SmsDialog smsDialog = new SmsDialog(clickedItem.MessageSento, clickedItem.MessageBody); await smsDialog.ShowAsync(); } }
private async void btnSend_Click(object sender, RoutedEventArgs e) { string recipients = string.Empty; string body = string.Empty; var clickedItem = (sender as Button).DataContext; if (clickedItem.GetType() == typeof(G3Packages)) { body = ((G3Packages)clickedItem).send_to; recipients = ((G3Packages)clickedItem).code; } else if (clickedItem.GetType() == typeof(PrepaidPackage)) { body = ((PrepaidPackage)clickedItem).send_to; recipients = ((PrepaidPackage)clickedItem).code; } else if (clickedItem.GetType() == typeof(PostpaidPackage)) { body = ((PostpaidPackage)clickedItem).send_to; recipients = ((PostpaidPackage)clickedItem).code; } else if (clickedItem.GetType() == typeof(TeletalkCorporate)) { body = ((TeletalkCorporate)clickedItem).send_to; recipients = ((TeletalkCorporate)clickedItem).code; } if (body == "empty") { Windows.ApplicationModel.Calls.PhoneCallManager.ShowPhoneCallUI(recipients, "Voice Package"); } else { SmsDialog smsDialog = new SmsDialog(body, recipients); await smsDialog.ShowAsync(); } }
private async void CheckFnf_Click(object sender, RoutedEventArgs e) { this.Hide(); SmsDialog smsDialog = new SmsDialog("363", "see 0155XXXXXXXX"); await smsDialog.ShowAsync(); }
private async void btnSend_Tapped(object sender, TappedRoutedEventArgs e) { SmsDialog smsDialog = new SmsDialog("111", ((TextBlock)e.OriginalSource).Text); await smsDialog.ShowAsync(); }