private void Call() { try { var realNumber = (String.IsNullOrEmpty(PhoneNumber)) || PhoneNumber == null ? ContactPhoneNumber : PhoneNumber; SelectedDevice.sendMessage(JSONHandler.creationAppelString("bob", SelectedDevice.Name, realNumber)); } catch (Exception ex) { //TODO faire popup fail message Console.WriteLine(ex); } }
private void SendMessage() { try { var realNumber = (String.IsNullOrEmpty(PhoneNumber)) || PhoneNumber == null ? ContactPhoneNumber : PhoneNumber; WriteConversationOnXml(realNumber); SelectedDevice.sendMessage(JSONHandler.creationSMSString("bob", SelectedDevice.Name, SmsText, realNumber)); SmsText = ""; //addNewNumber = false; } catch (Exception ex) { //TODO popup message fail Console.WriteLine(ex); } }