private void OnParameters(object sender, RibbonControlEventArgs e) { try { Form form = null; switch (Globals.StackBuilderAddIn.CurrentMode) { case StackBuilderAddIn.Mode.ANALYSIS_PERROW: form = new FormSettingsPerRow(); break; case StackBuilderAddIn.Mode.ANALYSIS_PERSHEET: form = new FormSettingsPerSheet(); break; default: break; } form.ShowDialog(); } catch (Exception ex) { Console.WriteLine(ex.Message); } }
private void OnParameters(object sender, RibbonControlEventArgs e) { try { Form form; switch (Globals.StackBuilderAddIn.CurrentMode) { case StackBuilderAddIn.Mode.AnalysisPerRow: form = new FormSettingsPerRow(); break; case StackBuilderAddIn.Mode.AnalysisPerSheet: form = new FormSettingsPerSheet(); break; default: throw new ArgumentOutOfRangeException(); } form.ShowDialog(); } catch (Exception ex) { Console.WriteLine(ex.Message); } }