FSClient.Call.CanSendToVoicemail C# (CSharp) Méthode

CanSendToVoicemail() public méthode

public CanSendToVoicemail ( ) : bool
Résultat bool
        public bool CanSendToVoicemail()
        {
            if (account == null)//TODO: FIX:: BAD//why are we null
                return false;
            String url = account.getSendVoicemailURL();
            return !String.IsNullOrEmpty(url);
        }

Usage Example

Exemple #1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     PositionWindows();
     lblCaller.Text              = call.other_party_name + " - " + call.other_party_number;
     Title                       = "FSClient Incoming Call " + lblCaller.Text;
     prop_changed                = new System.ComponentModel.PropertyChangedEventHandler(call_PropertyChanged);
     call.PropertyChanged       += prop_changed;
     btnSendVoicemail.Visibility = call.CanSendToVoicemail() ? Visibility.Visible : Visibility.Hidden;
     btnTransfer.ContextMenu     = Broker.get_instance().XFERContextMenu();
     btnTransfer.DataContext     = call;
     if (Broker.get_instance().IncomingKeyboardFocus)
     {
         DelayedFunction.DelayedCall("BubbleTop", MakeUsTop, 500);
     }
     Show();
     Topmost = true;
 }