private void TaskListCellDoubleClick(object sender, LayoutHitTestEventArgs e) { if (e.HitTest.Item is TaskExecutor task) { task.Cancel(); } }
protected override void OnHeaderMouseUp(LayoutHitTestEventArgs e) { base.OnHeaderMouseUp(e); if (e.HitTest.ItemBound.Contains(cacheHitt.HitTest.Point)) { OnCellEditEnd(new CancelEventArgs(true)); Filters.RemoveAt(e.HitTest.Index); return; } }
protected virtual void OnCellDoubleClick(object sender, LayoutHitTestEventArgs e) { if (list.Mode != LayoutListMode.Fields) { cacheArg.Item = list.SelectedItem; } else { cacheArg.Item = list.FieldInfo.ValueColumn.ReadValue(list.SelectedNode); } OnItemSelect(cacheArg); }
private void NotifyPListCellClick(object sender, LayoutHitTestEventArgs e) { ItemClick?.Invoke(this, EventArgs.Empty); }
protected void ListCellDoubleClick(object sender, LayoutHitTestEventArgs e) { Value = GetDropDownValue(); DropDown.Hide(); }