internal void RemoveRecord(IRecord record) { Record currRec = ((Record)record).getPrevRec(); if (currRec == null) { currRec = ((Record)record).getNextRec(); } if (currRec != null) { SetCurrentRecord(currRec.getId()); } else { Dataview.reset(); } Dataview.RemoveRecord((Record)record); TaskViews.ClearRecord(record); UpdateTableChildrenArraysSize(); }