예제 #1
0
 private void OnItemsControlImpl_ItemSelected(object sender, ItemSelectedEventArgs args)
 {
     if (this.ItemSelected != null)
     {
         this.ItemSelected(sender, args);
     }
     this.CallOnItemSelected(args);
 }
예제 #2
0
        public void SelectItem(RadItem item)
        {
            if (this.selectedItem != item && this.selectedItem != null && this.ItemDeselected != null)
            {
                ItemSelectedEventArgs args = new ItemSelectedEventArgs(selectedItem);
                this.ItemDeselected(this, args);
            }

            this.selectedItem = item;

            if (this.ItemSelected != null && item != null)
            {
                ItemSelectedEventArgs args = new ItemSelectedEventArgs(item);
                this.ItemSelected(this, args);
            }
        }
예제 #3
0
 protected virtual void OnItemSelected(ItemSelectedEventArgs args)
 {
 }
예제 #4
0
 internal void CallOnItemSelected(ItemSelectedEventArgs args)
 {
     this.OnItemSelected(args);
 }
예제 #5
0
 public void CallOnItemDeselected(ItemSelectedEventArgs args)
 {
     this.OnItemDeselected(args);
 }