Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }