private void openEdit() { if (SelectedIndex >= 0) { _dialogService.ShowDialog(this, new ViewModels.EditViewModel(_dialogService, Selected)); CurrentList.ChangeNote(SelectedIndex, Selected.Text); Utilities.SavedData.Save(Tabs); } }