protected virtual void OnItemClicked(string path) { ItemClickedEventHandler handler = ItemClicked; if (handler != null) { handler(this, path); } }
void Choose_TouchUpInside(object sender, EventArgs e) { if (TableView.Source == null) { return; } Type SourceType = TableView.Source.GetType(); MethodInfo GetCheckedMethod = SourceType.GetMethod("GetChecked"); var CheckedItem = GetCheckedMethod.Invoke(TableView.Source, null); ItemClickedEventHandler temp = OnItemSelected; if (temp != null) { temp((object)CheckedItem); } }
public Menu(string text, ItemClickedEventHandler clicked) { ItemClicked += clicked; Text = text; }
public LightMenu(string text, ItemClickedEventHandler clicked) { ItemClicked += clicked; Text = text; }