private void radCheckedDropDownList1_ItemCheckedChanged(object sender, RadCheckedListDataItemEventArgs e)
 {
     if (e.Item.Checked == false)
     {
         valueChange -= Convert.ToInt32(e.Item.Value);
     }
     else
     {
         valueChange += Convert.ToInt32(e.Item.Value);
     }
 }
Esempio n. 2
0
 private void CboReflejantes_ItemCheckedChanged(object sender, RadCheckedListDataItemEventArgs e)
 {
     try {
         if (cboReflejantes.CheckedItems.Count > int.Parse(txtCavidades.Text))
         {
             RadMessageBox.Show("Sólo puede seleccionar " + txtCavidades.Text + " Reflejante(s).", this.Text, MessageBoxButtons.OK, RadMessageIcon.Exclamation);
             e.Item.Checked = false;
         }
     } catch (Exception ex) {
         RadMessageBox.Show("Ocurrio un error al seleccionar el reflejante\n" + ex.Message, this.Text, MessageBoxButtons.OK, RadMessageIcon.Error);
     }
 }
Esempio n. 3
0
        //Checkbox Handlers
        private void ItemCheckedChanged(object sender, RadCheckedListDataItemEventArgs e)
        {
            if (_ignoreEvent)
            {
                return;
            }
            var newSender = (RadCheckedDropDownListElement)sender;

            switch ((CriteriaType)newSender.Tag)
            {
            case CriteriaType.ListingStatus:
                _request.StatusTypes.Clear();
                foreach (var item in newSender.CheckedItems)
                {
                    _request.StatusTypes.Add(int.Parse(item.Tag.ToString()));
                }
                break;

            case CriteriaType.PropertyType:
                _request.PropertyTypes.Clear();
                foreach (var item in newSender.CheckedItems)
                {
                    _request.PropertyTypes.Add(int.Parse(item.Tag.ToString()));
                }
                break;

            case CriteriaType.SearchOptions:
                _request.SearchOptionTypes.Clear();
                foreach (var item in newSender.CheckedItems)
                {
                    _request.SearchOptionTypes.Add(int.Parse(item.Tag.ToString()));
                }
                break;
            }

            //DEBUG CODE
            //Debug.WriteLine("_request -- Status List:[{0}] Property List:[{1}] Search Option List: [{2}]",
            //    string.Join(",", _request.StatusTypes), string.Join(",", _request.PropertyTypes), string.Join(",", _request.SearchOptionTypes));

            DoSearch(_mapControlA);
            DoSearch(_mapControlB);
        }
 private void radCheckedDropDownList1_ItemCheckedChanged(object sender, RadCheckedListDataItemEventArgs e)
 {
     if (e.Item.Checked == false)
     {
         valueChange -= Convert.ToInt32(e.Item.Value);
     }
     else
     {
         valueChange += Convert.ToInt32(e.Item.Value);
     }
 }