private void ContextMenu_HueAdjustment_Click(object sender, RoutedEventArgs e) { #if !DEBUG try #endif { var material = dataGrid.SelectedItem as Material; if (material != null) { RecolorAll recolor = new RecolorAll(material, this); if (recolor.Initialize()) { recolor.ShowDialog(); } } } #if !DEBUG catch (Exception ex) { parent.SaveExceptionLog(ex.ToString()); MessageBox.Show(String.Format("An error occured.\n\nDetails: {0}\n\nA log containing more details about the error was saved at \"{1}\".", ex.Message, SettingsManager.Instance.GetErrorLogPath()), "Error", MessageBoxButton.OK, MessageBoxImage.Error); } #endif }
private void ToolMenu_HueAdjustment_Click(object sender, RoutedEventArgs e) { #if !DEBUG try #endif { Forms.RecolorAll recolor = new Forms.RecolorAll(effectContainerFile, this); if (recolor.Initialize()) { recolor.ShowDialog(); } } #if !DEBUG catch (Exception ex) { SaveExceptionLog(ex.ToString()); MessageBox.Show(String.Format("An error occured.\n\nDetails: {0}\n\nA log containing more details about the error was saved at \"{1}\".", ex.Message, SettingsManager.Instance.GetErrorLogPath()), "Error", MessageBoxButton.OK, MessageBoxImage.Error); } #endif }
private void ContextMenu_HueAdjustment_Click(object sender, RoutedEventArgs e) { #if !DEBUG try #endif { var material = dataGrid.SelectedItem as Material; if (material != null) { RecolorAll recolor = new RecolorAll(material, this); recolor.ShowDialog(); } } #if !DEBUG catch (Exception ex) { parentWindow.SaveExceptionLog(ex.ToString()); MessageBox.Show(String.Format("An error occured.\n\nDetails: {0}\n\nA log containing more details about the error was saved at \"{1}\".", ex.Message, GeneralInfo.ERROR_LOG_PATH), "Error", MessageBoxButton.OK, MessageBoxImage.Error); } #endif }