Пример #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            listStaff                   = new ObservableCollection <Staff>(SqliteDataAcces.GetListAuthor());
            cmbAuthor.ItemsSource       = listStaff;
            cmbAuthor.SelectedValuePath = "AuthorID";

            lbFilteredCaseEntry.ItemsSource       = listFilteredCaseEntry;
            lbFilteredCaseEntry.SelectedValuePath = "CaseNumber";
            listAllCaseEntries     = SqliteDataAcces.GetListAllCaseEntries();
            listAllCaselyUserDatas = SqliteDataAcces.GetAllCaselyUserData();
            SearchDatabase();
        }
Пример #2
0
        private async Task <List <CaselyUserData> > GetAllCaselyUserDataAsync()
        {
            var result = await Task.Run(() => SqliteDataAcces.GetAllCaselyUserData());

            return(result);
        }