private void ButtonEraseLayerButtons_OnClick(object sender, RoutedEventArgs e) { try { if (MessageBox.Show("Erase all buttons on layer " + ComboBoxLayers.Text + "?", "Can not be undone!", MessageBoxButton.YesNo, MessageBoxImage.Warning) == MessageBoxResult.Yes) { _streamDeckPanel.EraseLayerButtons(ComboBoxLayers.Text); } } catch (Exception ex) { Common.ShowErrorMessageBox(ex); } }