private void RemoveOldCalls(System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            foreach (Tapi.Call current in e.OldItems)
            {
                CallUserControl control = this.GetCallUserControlByCall(current);

                if (control != null && !control.HasNote)
                {
                    this.activeCallPanel.Controls.Remove(control);
                }
            }
        }
        private CallUserControl GetCallUserControlByCall(Tapi.Call call)
        {
            CallUserControl result = null;

            foreach (Control current in this.activeCallPanel.Controls)
            {
                if (current is CallUserControl && current.Tag == call)
                {
                    result = current as CallUserControl;
                }
            }

            return(result);
        }
        private void AddNewCalls(System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            foreach (Call current in e.NewItems)
            {
                CallUserControl newCall = new CallUserControl(current);
                //newCall.Width = this.activeCallPanel.Width - newCall.Margin.Left - newCall.Margin.Right;
                //newCall.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right;
                this.activeCallPanel.Controls.Add(newCall);
            }

            this.tabControl1.SelectedTab = this.activeCallTabPage;
            this.FindForm().WindowState  = FormWindowState.Normal;
            this.FindForm().BringToFront();
            this.FindForm().TopMost = true;
        }