public void CloseFile(EdataFileViewModel vm) { if (!OpenFiles.Contains(vm)) { return; } OpenFiles.Remove(vm); }