public async void AddBoard() { Board board = new Board { Name = "", Color = Color.Transparent }; board.ID = await DataAccess.AddBoard(board); Boards.Add(board); Helpers.Boards.SetBoards(Boards); }
private void NewBoardSaveButton_Clicked(object sender, RoutedEventArgs e) { var new_id = Guid.NewGuid().GetHashCode(); var new_board = new BoardModel(new_id, NewBoardNameTextBox.Text); BoardList.Add(new_board); // Update database DataAccess.AddBoard(new_id, NewBoardNameTextBox.Text); NewBoardNameTextBox.Text = string.Empty; NewBoard_SplitView.IsPaneOpen = false; }