public void Delete() { if (!CanDelete) { return; } Doc.DeleteLine(CurrentLine.Value); Doc.UpdateStat(); Lines.Remove(CurrentLine.Value); }