Beispiel #1
0
 public ListBoxItem(object tag, GetObjectStringDelegate getItemText, GetObjectBoolDelegate getItemSelected, SetObjectBoolDelegate setItemSelected)
 {
     _tag             = tag;
     _getItemText     = getItemText;
     _getItemSelected = getItemSelected;
     _setItemSelected = setItemSelected;
     _depText         = Dependent.New("ListBoxItem.Text", UpdateText);
     _depSelected     = Dependent.New("ListBoxItem.Selected", UpdateSelected);
 }
 public ListBoxItem( object tag, GetObjectStringDelegate getItemText, GetObjectBoolDelegate getItemSelected, SetObjectBoolDelegate setItemSelected )
 {
     _tag = tag;
     _getItemText = getItemText;
     _getItemSelected = getItemSelected;
     _setItemSelected = setItemSelected;
     _depText = Dependent.New("ListBoxItem.Text", UpdateText);
     _depSelected = Dependent.New("ListBoxItem.Selected", UpdateSelected);
 }