why I do not get anything in my textbox when I run the program? I have my methods in class can anybody give me any hint I can solve this issue.
MainWin code
*List<Card> cards = new List<Card>();
DBManager dB = new DBManager();
public MainWindow()
{
Card card = new Card();
InitializeComponent();
dB.GetCards(cards);
txtQuestion.Text = card.Question;
lblCardsList.ItemsSource = cards;
GetRandomCards();
DisplayCardQuestion();
}
private void GetRandomCards()
{
Card card = new Card();
Random random = new Random();
int rndCard = random.Next(1, 100);
for (int i = 0; i < rndCard; i++)
{
cards.Add(card);
}
}
private void DisplayCardQuestion()
{
Card card = new Card();
lblCardNum.Content =card.CardID;
txtQuestion.Text = card.Question;
txtTitle.Text = card.Title;
}*