I have on form (ui thread) and a backgroundworker thread. I am trying to check whether a radio button in the main ui thread is checked or not inside the backgroundworker thread. How would I go upon comparing the bool type inside an if statement that is inside my backgroundworker's dowork event?
Note: I am using WPF.
private void backgroundworker_DoWork(object sender, DoWorkEventArgs e)
{
if () // if (rdbCreditCard.Checked == true) {} etc. etc.
{
}
}