/* * Member Methods */ public override void Activate() { if (ItemActivated != null) { ItemActivated(this, new EventArgs()); } Control top = _parentList.GetControl().Parent; _subList.GetControl().Size = top.Size; _subList.GetControl().Location = new System.Drawing.Point(0, 0); PhonePUC.LeftMenuStackItem item = new PhonePUC.LeftMenuStackItem("Back", new EventHandler(this.menuButtonPress)); Globals.PushLeftMenuStack(item); top.Controls.Add(_subList.GetControl()); top.Controls.Remove(_parentList.GetControl()); _subList.GetControl().Focus(); }
/* * Constructor */ public SubListViewItemCIO(PhoneListViewCIO parent, PhoneListViewCIO subList, LabelDictionary dict) { _parentList = parent; _subList = subList; _labels = dict; ((PhoneListView)_subList.GetControl()).BackButtonPressed += new KeyPressEventHandler(this.backButtonPress); }