Exemple #1
0
        private void SMS(string number)
        {
            var formatted = FormatNumber(number);
            var form      = new SMSDialog(formatted);

            if (form.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    this.account.SMS(number, form.Message);

                    AddRecent(formatted, formatted, mCallRecentMenuItem);
                }
                catch (Exception ex)
                {
                    ReportException(ex, "There was an error sending the SMS message.");
                }
            }
        }
Exemple #2
0
        private void SMS(string number)
        {
            var formatted = FormatNumber(number);
            var form = new SMSDialog(formatted);
            if (form.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    this.account.SMS(number, form.Message);

                    AddRecent(formatted, formatted, mCallRecentMenuItem);
                }
                catch (Exception ex)
                {
                    ReportException(ex, "There was an error sending the SMS message.");
                }
            }
        }