This is probably easy to solve, but the following cannot be done:
protected void gSelectApplied(object sender, EventArgs e)
{
ComboBox box = (ComboBox)sender;
}
Because the ComboBox object is not present in the imported libraries. I went ahead an looked at the Microsoft documentation and I do not have access to the System.Windows.* libraries.