コード例 #1
0
 /// <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); }
 }
コード例 #2
0
 void Awake()
 {
     onConfigChange = new OnConfigChangeEvent();
 }