예제 #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();
        }