Example #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();
        }
Example #2
0
 bool clearLink_Softkey(int keyId)
 {
     if (10 == keyId)
     {
         CCallLog.getInstance().clearAll();
     }
     return(true);
 }