public void Execute(GrapeCity.Win.MultiRow.GcMultiRow target) { if (target?.CurrentCell == null || target?.CurrentCell.RowIndex < 0) { return; } var parentForm = target.TopLevelControl as Form; if (parentForm == null) { return; } parentForm.DialogResult = DialogResult.OK; }
public bool CanExecute(GrapeCity.Win.MultiRow.GcMultiRow target) => true;