protected override void ExecuteCore() { column = grid.FindEmptyColumn(); if (column != -1 && grid.ColumnDefinitions.Count > 1) { columnDefinition = grid.ColumnDefinitions[column]; grid.RemoveColumnDefinitionCore(column); } row = grid.FindEmptyRow(); if (row != -1 && grid.RowDefinitions.Count > 1) { rowDefinition = grid.RowDefinitions[row]; grid.RemoveRowDefinitionCore(row); } }
protected override void UnExecuteCore() { grid.RemoveRowDefinitionCore(this.rowIndex); }