Esempio n. 1
0
        void OpenCallerIdForm(string calleridnum)
        {
            frmCallerId frm = new frmCallerId(this.optset, calleridnum);

            frm.WindowState = FormWindowState.Normal;

            if (this.optset.TriggerCallerId)
            {
                if (this.InvokeRequired)
                {
                    Invoke(new FormShowDelegate(FormShow), new object[] { (object)frm });
                    Invoke(new SetMethodDelegate(SetMethod), new object[] { (object)frm, "StartTimer", new object[] { this.optset.CallerIdTimeout } });
                }
                else
                {
                    frm.Show();
                    frm.StartTimer(this.optset.CallerIdTimeout);
                }
            }
        }
Esempio n. 2
0
        void OpenCallerIdForm(string calleridnum)
        {
            frmCallerId frm = new frmCallerId(this.optset, calleridnum);
            frm.WindowState = FormWindowState.Normal;

            if (this.optset.TriggerCallerId)
            {
                if (this.InvokeRequired)
                {
                    Invoke(new FormShowDelegate(FormShow), new object[] { (object)frm });
                    Invoke(new SetMethodDelegate(SetMethod), new object[] { (object)frm, "StartTimer", new object[] { this.optset.CallerIdTimeout } });
                }
                else
                {
                    frm.Show();
                    frm.StartTimer(this.optset.CallerIdTimeout);
                }
            }
        }