예제 #1
0
        /// <summary> Notify me when the polling station selection changes. </summary>
        public void AddPSSelectionChangedHandler(CBInputChangedHandler handler)
        {
            ComboBox cps = cbxPollingStation;

            EventHandler pshandler = (o, eA) => handler(cps.SelectedItem as IDataObject);

            pshandlers.Add(pshandler);

            cps.SelectedIndexChanged += pshandler;
        }
        /// <summary> Notify me when the polling station selection changes. </summary>
        public void AddPSSelectionChangedHandler(CBInputChangedHandler handler)
        {
            ComboBox cps = cbxPollingStation;

            EventHandler pshandler = (o, eA) => handler(cps.SelectedItem as IDataObject);
            pshandlers.Add(pshandler);

            cps.SelectedIndexChanged += pshandler;
        }
 /// <summary> Notify me when the municipality selection changes. </summary>
 public void AddMSelectionChangedHandler(CBInputChangedHandler handler)
 {
     ComboBox cmp = cbxMunicipalities;
     cmp.SelectedIndexChanged += (o, eA) => handler((IDataObject)cmp.SelectedItem);
 }
예제 #4
0
        /// <summary> Notify me when the municipality selection changes. </summary>
        public void AddMSelectionChangedHandler(CBInputChangedHandler handler)
        {
            ComboBox cmp = cbxMunicipalities;

            cmp.SelectedIndexChanged += (o, eA) => handler((IDataObject)cmp.SelectedItem);
        }