Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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;
        }