protected virtual void ItemColumn_ButtonPressEvent(object sender, CellButtonPressEventArgs args) { if (grid.EditedCell != args.Cell) { CurrentColumnEvaluate(); EditGridCell(args.Cell.Row, args.Cell.Column); } if (args.EventButton.Type != EventType.TwoButtonPress) { return; } object cellValue = grid.EditedCellValue; gridNavigator.ChooseCellValue(ItemColumnEvaluate, ItemColumnChoose, cellValue == null ? string.Empty : cellValue.ToString()); }
private void ColumnItem_ButtonPressEvent(object sender, CellButtonPressEventArgs args) { ShortcutColumnEvaluate(grid.EditedCell.Row, string.Empty); if (grid.EditedCell != args.Cell) { EditGridCell(args.Cell.Row, args.Cell.Column); } if (args.EventButton.Type != EventType.TwoButtonPress) { return; } object cellValue = grid.EditedCellValue; gridNavigator.ChooseCellValue(ItemColumnEvaluate, ItemColumnChoose, cellValue == null ? string.Empty : cellValue.ToString()); }
private void MatItem_ButtonPressEvent(object sender, CellButtonPressEventArgs args) { if (grdMaterials.EditedCell != args.Cell) { MatCurrentColumnEvaluate(); MatCellEdit(args.Cell.Row, args.Cell.Column); } else { MatCellEdit(-1, -1); } if (grdMaterials.DisableEdit || args.EventButton.Type != Gdk.EventType.TwoButtonPress) { return; } object cellValue = grdMaterials.EditedCellValue; GridNavigator.ChooseCellValue(MatItemEvaluate, MatItemChoose, cellValue == null ? string.Empty : cellValue.ToString()); }