private int FindItem(string text) { for (int i = 0; i < _view.Files.Count; i++) if (_view.Files[i].Text.Equals(text)) return i; return -1; }