private void Delete() { foreach (SourceGrid.Grid.GridRow row in this.SelectedRows) { IFileClass v = row.Tag as IFileClass; if (v != null) { if (this.BoardControl != null) { this.BoardControl.Remove(v); } v.Remove(); } } this.Count = this.gridList.RowsCount - 1; }