コード例 #1
0
        private void btnMessage_Click(object sender, RoutedEventArgs e)
        {
            MessageSendingWindow dialog = new MessageSendingWindow
            {
                Owner = this, DestName = _user.Name, DestNumber = _user.Number
            };

            if (dialog.ShowDialog() != true)
            {
                return;
            }
            App.SIPUA.SendMessage(_system.AccountId, _user.Number, dialog.Message);
        }
コード例 #2
0
        private void btnMessage_Click(object sender, RoutedEventArgs e)
        {
            MessageSendingWindow dialog = new MessageSendingWindow();

            dialog.Owner      = this;
            dialog.DestName   = _channel.CallPartyDisplayName;
            dialog.DestNumber = _channel.CallPartyDisplayNumber;

            if (dialog.ShowDialog() == true)
            {
                App.SIPUA.SendMessage(_channel.CallId, dialog.Message);
                DialogResult = true;
            }
        }
コード例 #3
0
        private void btnReply_Click(object sender, RoutedEventArgs e)
        {
            if (lbxMessage.SelectedIndex == -1)
            {
                return;
            }

            Message msg = lbxMessage.SelectedItem as Message;

            if (msg == null)
            {
                return;
            }

            MessageSendingWindow dialog = new MessageSendingWindow {
                DestNumber = msg.From, Owner = this
            };

            if (dialog.ShowDialog() != true)
            {
                return;
            }
            App.SIPUA.SendMessage(_subsystem.AccountId, msg.From, dialog.Message);
        }