/// <summary> /// try to save the configuration; throws message box if it fails /// </summary> private void _Button_OK_Click(object sender, RoutedEventArgs e) { try { this.saveData(); OnConfigChangeEvent.BeginInvoke(currentConfig, null, null); this.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Exception", MessageBoxButton.OK, MessageBoxImage.Error); } }
void Awake() { onConfigChange = new OnConfigChangeEvent(); }