I am trying to create a simple Windows Form App in VS 2013 using C#. The form has 2 combo boxes with some strings to select from. I am trying to display results in 2 text boxes based upon those selections, but when I run the program the results do not display. I placed the code in the method for selecting values from the combo boxes. Here is what I have:
private void SiteList_SelectedValueChanged(object sender, EventArgs e)
{
string SiteSelect = SiteList.SelectedValue.ToString();
string DateSelect = dateList.SelectedValue.ToString();
if (SiteSelect == "Alaska" && DateSelect = "January 2014")
{
actualResults.Text = "$391,015.92";
estimateResults.Text = "No Estimate Available";
}
}