protected void Menu1_MenuItemClick(object sender, MenuEventArgs e) { if (ClearClick != null && e.Item.Text == "清除") { ClearClick.Invoke(e.Item, new EventArgs()); } if (EditClick != null && e.Item.Text == "編輯") { EditClick.Invoke(e.Item, new EventArgs()); } if (ExportClick != null && (e.Item.Text == "XLS" || e.Item.Text == "CSV")) { ExportClick.Invoke(e.Item, new EventArgs()); } if (ImportClick != null && e.Item.Text == "導入") { ImportClick.Invoke(e.Item, new EventArgs()); } if (SearchClick != null && e.Item.Text == "查找") { SearchClick.Invoke(e.Item, new EventArgs()); } if (NewClick != null && e.Item.Text == "新增") { NewClick.Invoke(e.Item, new EventArgs()); } if (DeleteClick != null && e.Item.Text == "刪除") { DeleteClick.Invoke(e.Item, new EventArgs()); } if (ApproveClick != null && e.Item.Text == "審核") { ApproveClick.Invoke(e.Item, new EventArgs()); } if (HelpClick != null && e.Item.Text == "幫助") { HelpClick.Invoke(e.Item, new EventArgs()); } }
public override bool OnTouchEvent(MotionEvent e) { //if (this.GetCompoundDrawables()[2] == null) //{ // if (!HasFocus) // RequestFocus(); // return base.OnTouchEvent(e); //} //if (e.Action != MotionEventActions.Up) //{ // if (!HasFocus) // RequestFocus(); // return base.OnTouchEvent(e); //} if (e.GetX() > this.Width - this.PaddingRight - findBtn.IntrinsicWidth) { SearchClick?.Invoke(this, new EventArgs()); } return(base.OnTouchEvent(e)); }
private void Button_Click(object sender, RoutedEventArgs e) { SearchClick?.Invoke(SearchString); }
private void SearchButtonClick(object sender, RoutedEventArgs e) { Hide(); SearchClick?.Invoke(sender, e); }
protected virtual void btnSearch_Click(object sender, EventArgs e) { SearchClick?.Invoke(sender, InitPageabledEventArgs()); }