public void GetDataGridItems() { ToDoLists toDoLists = new ToDoLists(userId); ToDoList toDoList = (ToDoList)toDoLists.dtgToDoLists.SelectedItem; var toDoListItems = _toDoListItemRepository.GetToDoListItemByFilter(x => x.ToDoListId == listId); dtgToDoListItems.ItemsSource = toDoListItems; }
private void BtnLogIn(object sender, RoutedEventArgs e) { var user = GetCurrentUserId(); if (user == null) { MessageBox.Show("User not found. Please check User Name and Password!"); } else { ToDoLists toDoLists = new ToDoLists(user.Id); toDoLists.Show(); this.Close(); } }