Exemplo n.º 1
0
 public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     if (value == null)
     {
         return("");
     }
     return(EnglishDirectionConverter.Convert((bool)value));
 }
Exemplo n.º 2
0
        private void CallMessageBox(Call c)
        {
            MessageBox.Show(
                "Number: " + c.other_party_number +
                "\nStart Time: " + ShortDateTimeConverter.Convert(c.start_time) +
                "\nEnd Time: " + ShortDateTimeConverter.Convert(c.end_time) +
                "\nDuration: " + DurationTimeConverter.Convert(c.duration) +
                "\nAccount: " + c.account +
                "\nNote: " + c.note +
                "\nKeys: " + c.dtmfs


                , c.state + " " + EnglishDirectionConverter.Convert(c.is_outgoing) + " Call " + c.other_party_name);
        }