Convert() public static method

public static Convert ( bool is_outgoing ) : String
is_outgoing bool
return String
Esempio 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));
 }
Esempio 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);
        }