public BookShelf(string currentUsername) { InitializeComponent(); this.username = currentUsername; dynamoDbOperation = new DDBOperation(); string userFirstName = dynamoDbOperation.GetFirstName(username); Firstlbl.Content = userFirstName + "!"; //Loading the Book Shelf of the User BooksIntoDataGrid(); //Adding date and time inside the ReadDateTime textbox datetimeTxt.Text = DateTime.Now.ToString(); }