示例#1
0
        private void _btnPickup_Click(object sender, EventArgs e)
        {
            ITapiCall      tc  = CurrentAddress.Pickup(_tbNumber.Text, null);
            ActiveCallForm acf = new ActiveCallForm(tc);

            acf.Show();
        }
示例#2
0
        private void _btnUnpark_Click(object sender, EventArgs e)
        {
            ITapiCall      tc  = CurrentAddress.Unpark(_tbNumber.Text);
            ActiveCallForm acf = new ActiveCallForm(tc);

            acf.Show();
        }
示例#3
0
        private void btnSetupTransfer_Click(object sender, EventArgs e)
        {
            TapiCall newCall = _call.SetupTransfer(null);

            if (newCall != null)
            {
                ActiveCallForm acf = new ActiveCallForm(newCall);
                acf.Show();
            }
        }
示例#4
0
        private void OnNewCall(object sender, NewCallEventArgs e)
        {
            if (InvokeRequired == true)
            {
                this.BeginInvoke(new EventHandler <NewCallEventArgs>(this.OnNewCall), new object[] { sender, e });
                return;
            }

            ActiveCallForm acf = new ActiveCallForm(e.Call);

            acf.Show();
        }