Exemple #1
0
        /*
         * 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);
        }