/* * Constructor */ public SubListViewItemCIO(PhoneListViewCIO parent, PhoneListViewCIO subList, LabelDictionary dict) { _parentList = parent; _subList = subList; _labels = dict; ((PhoneListView)_subList.GetControl()).BackButtonPressed += new KeyPressEventHandler(this.backButtonPress); }
/* * Constructor */ public PanelListViewItemCIO(PhoneListViewCIO parentList, LabelDictionary labels) { _parentList = parentList; _labels = labels; _panel = new ScrollingPanelCIO(); /* * _panel = new PanelCIO( new PhonePanel() ); * ((PhonePanel)_panel.GetControl()).BackButtonPressed += * new KeyPressEventHandler(this.backButtonPress); */ }
/* * Constructor */ public SingleItemPanelListViewItemCIO(PhoneListViewCIO parentList, ApplianceState state) { _parentList = parentList; _state = state; _panel = new ScrollingPanelCIO(); /* * _panel = new PanelCIO( new PhonePanel() ); * * ((PhonePanel)_panel.GetControl()).BackButtonPressed += * new KeyPressEventHandler(this.backButtonPress); */ _state.EnableChangedEvent += new PUC.ApplianceObject.EnableChangedHandler(this.enableChanged); _state.LabelChangedEvent += new PUC.ApplianceObject.LabelChangedHandler(this.labelChanged); _state.ValueChangedEvent += new PUC.ApplianceState.ValueChangedHandler(this.valueChanged); }