AcManager.Pages.About.ImportantTipsPage.ViewModel.ViewModel C# (CSharp) Method

ViewModel() public method

public ViewModel ( string key ) : System
key string
return System
            public ViewModel(string key) {
                NotesList = new ListCollectionView(ImportantTips.Entries.Where(x => !x.IsLimited || AppKeyHolder.IsAllRight).Reverse().ToList());
                if (key != null) {
                    NotesList.MoveCurrentTo(ImportantTips.Entries.FirstOrDefault(x => x.Id?.Contains(key) == true));
                } else {
                    NotesList.MoveCurrentToFirst();
                }
            }
ImportantTipsPage.ViewModel