コード例 #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;
        }
コード例 #2
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;
        }
コード例 #3
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);
 }
コード例 #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);
        }