Пример #1
0
        public override void onEntry()
        {
            _list.removeAll();

            Stack <CCallRecord> results = CCallLog.getInstance().getList();

            if (results == null)
            {
                return;
            }

            foreach (CCallRecord item in results)
            {
                CDoubleLink recordLink = new CDoubleLink(item.Number + " " + item.Name, " " + item.Time.ToString());
                //recordLink.subItems[0] = item.LastName;
                //recordLink.subItems[1] = item.FirstName;
                recordLink.subItems[2] = item.Number;
                recordLink.Ok         += new VoidDelegate(recordLink_Ok);
                recordLink.Softkey    += new BoolIntDelegate(recordLink_Softkey);
                _list.add(recordLink);
            }
            if (results.Count > 3)
            {
                CDoubleLink separator1 = new CDoubleLink("------------------------", "------------------------", EAlignment.justify_center, EAlignment.justify_center);
                _list.add(separator1);
            }

            base.onEntry();
        }
Пример #2
0
        public override void onEntry()
        {
            _list.removeAll();

            Dictionary <int, CBuddyRecord> results = CBuddyList.getInstance().getList();

            foreach (KeyValuePair <int, CBuddyRecord> kvp in results)
            {
                CLink recordLink = new CLink(kvp.Value.FirstName + " " + kvp.Value.LastName);
                recordLink.subItems[0] = kvp.Value.Id.ToString();

                recordLink.Ok      += new VoidDelegate(recordLink_Ok);
                recordLink.Softkey += new BoolIntDelegate(recordLink_Softkey);
                _list.add(recordLink);
            }

            base.onEntry();
        }
Пример #3
0
        public override void onEntry()
        {
            int callnums = _callManager.getNoCallsInState(EStateId.HOLDING);

            _3pty2List.removeAll();

            Dictionary <int, CStateMachine> list = _callManager.CallList;

            foreach (KeyValuePair <int, CStateMachine> kvp in list)
            {
                CStateMachine call = kvp.Value;
                if ((call.Session != _callManager.getCurrentCall().Session) && (call.getStateId() == EStateId.HOLDING))
                {
                    string dn   = call.CallingNo;
                    CLink  link = new CLink(dn);
                    link.Align       = EAlignment.justify_left;
                    link.subItems[0] = call.Session.ToString();
                    _3pty2List.add(link);
                }
            }

            base.onEntry();
        }