Exemplo n.º 1
0
        private void deleteMessage_Click(object sender, RoutedEventArgs e)
        {
            var b = (Button)sender;
            SMSTemplateMessageEmbedded message = (SMSTemplateMessageEmbedded)b.DataContext;

            ((SMSTemplateEntity)DataContext).Messages.Remove(message);
        }
Exemplo n.º 2
0
        static string CombineText(SMSTemplateEntity template, SMSTemplateMessageEmbedded templateMessage, List <Combination> combinations)
        {
            string text = templateMessage.Message;

            if (template.RemoveNoSMSCharacters)
            {
                text = SMSCharacters.RemoveNoSMSCharacters(templateMessage.Message);
                combinations.ForEach(c => c.Value = SMSCharacters.RemoveNoSMSCharacters(c.Value));
            }

            return(CombineText(text, combinations, template.MessageLengthExceeded));
        }
Exemplo n.º 3
0
 private void removeNonSMSChars_Click(object sender, RoutedEventArgs e)
 {
     TemplateMessageDC.Message = SMSCharacters.RemoveNoSMSCharacters(TemplateMessageDC.Message);
     TemplateMessageDC         = TemplateMessageDC;
 }