Okay - the way it works is I have 3 radio buttons and one datagrid, each time the user selects one of the radio buttons (because only one can be on at a time) I launch a function (RefreshGUI) that will reload the datagrid given the users new selection.
To determine when a radiobutton has been checked I am using the _CheckedChanged event - sadly this is having some negative effects...
So it goes something like this:
So the problem is, when rbFINSIHED is checked and the user goes to check rbALL instead this fires my RefreshGUI() function TWICE, once because rbFINSIHED is unchecking (change) and one because rbALL is being checked (change).
Obviously this greatly inneficient, I need a way so that I only end up firing my RefreshGUI() function ONCE as expected.
Any help/hints would be appreciated, thanks.
To determine when a radiobutton has been checked I am using the _CheckedChanged event - sadly this is having some negative effects...
So it goes something like this:
C#:
private void rbFINISHED_CheckedChanged(object sender, System.EventArgs e)
{
RefreshGUI();
}
private void rbALL_CheckedChanged(object sender, System.EventArgs e)
{
RefreshGUI();
}
private void rbINPROGRESS_CheckedChanged(object sender, System.EventArgs e)
{
RefreshGUI();
}
private void RefreshGUI()
{
... RefreshGUI
}
So the problem is, when rbFINSIHED is checked and the user goes to check rbALL instead this fires my RefreshGUI() function TWICE, once because rbFINSIHED is unchecking (change) and one because rbALL is being checked (change).
Obviously this greatly inneficient, I need a way so that I only end up firing my RefreshGUI() function ONCE as expected.
Any help/hints would be appreciated, thanks.
Last edited by a moderator: