コード例 #1
0
 protected override void LotLocationColumnEditNext(int row, Key keyCode)
 {
     if (editMode)
     {
         GridNavigator.EditNextOnLast(row, keyCode, colItem, ItemColumnEditNext, operation.Details, operation.AddNewDetail, false);
     }
     else
     {
         base.LotLocationColumnEditNext(row, keyCode);
     }
 }
コード例 #2
0
 protected override void SecondLotLocationColumnEditPrev(int row, Key keyCode)
 {
     if (keyCode == Key.ISO_Left_Tab)
     {
         GridNavigator.EditPrev(grid.Model.Count - 1, keyCode, colLotLocation, LotLocationColumnEditPrev);
     }
     else
     {
         base.SecondLotLocationColumnEditPrev(row, keyCode);
     }
 }
コード例 #3
0
        protected override void ItemColumn_ButtonPressEvent(object sender, CellButtonPressEventArgs args)
        {
            if (grid.EditedCell != args.Cell)
            {
                CurrentColumnEvaluate();
                EditGridCell(args.Cell.Row, args.Cell.Column);
            }
            else
            {
                EditGridCell(-1, -1);
            }

            if (grid.DisableEdit || args.EventButton.Type != Gdk.EventType.TwoButtonPress || editMode)
            {
                return;
            }

            object cellValue = grid.EditedCellValue;

            GridNavigator.ChooseCellValue(ItemColumnEvaluate, ItemColumnChoose,
                                          cellValue == null ? string.Empty : cellValue.ToString());
        }