예제 #1
0
        protected virtual void OnItemClicked(string path)
        {
            ItemClickedEventHandler handler = ItemClicked;

            if (handler != null)
            {
                handler(this, path);
            }
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 public Menu(string text, ItemClickedEventHandler clicked)
 {
     ItemClicked += clicked;
     Text = text;
 }
예제 #4
0
 public LightMenu(string text, ItemClickedEventHandler clicked)
 {
     ItemClicked += clicked;
     Text         = text;
 }