void listBoxItem_Hold(object sender, System.Windows.Input.GestureEventArgs e) { ListBoxItem listBoxItem = (ListBoxItem)sender; Contact contact = (from con in contacts where con.DisplayName.ToLower() == ((listBoxItem.Content as Grid).Children[0] as TextBlock).Text select con).FirstOrDefault(); if (contact == null) { playSound("Contact not found."); return; } if (contact.EmailAddresses.Count() == 0) { playSound("Email address not available."); return; } WebService1SoapClient webService = new WebService1SoapClient(); updateUserLocation(); //webService.sendEmailForFolloUserByWindowsPhoneIdAsync(myPhone.serializedDeviceUniqueId(),contact.EmailAddresses.First().EmailAddress ); webService.sendEmailForFolloUserByWindowsPhoneIdAsync(myPhone.serializedDeviceUniqueId(), "*****@*****.**"); playSound("success"); }
void listBoxItem_DoubleTap() { Contact contact = (from con in contacts where con.DisplayName == itemSelected select con).FirstOrDefault(); if (contact == null) { playSound("Contact not found."); return; } if (contact.EmailAddresses.Count() == 0) { playSound("Email address not available."); return; } WebService1SoapClient webService = new WebService1SoapClient(); updateUserLocation(); //webService.sendEmailForFolloUserByWindowsPhoneIdAsync(myPhone.serializedDeviceUniqueId(),contact.EmailAddresses.First().EmailAddress ); //Moq webService.sendEmailForFolloUserByWindowsPhoneIdAsync(myPhone.serializedDeviceUniqueId(), "*****@*****.**"); playSound("success"); }