private void OnStyleButtonClick(object sender, EventArgs e) { ComboBoxItem comboboxItem = cmbStyle.SelectedItem as ComboBoxItem; if (comboboxItem != null) { MessageBox.Show("New style set"); } if (comboboxItem.Content.ToString() == "Melon Pattern") { facade.SetStylePattern("melon"); } else if (comboboxItem.Content.ToString() == "Default Pattern") { facade.SetStylePattern("default"); } }