コード例 #1
0
        /// <summary>
        /// Evaluate the formula: to be run in Excel thread
        /// </summary>
        private void UpdateEvaluation(string formula)
        {
            object formulaResult = ExcelHelper.EvaluateFormula(formula, _application);

            Dispatcher.Invoke(new Action(() => EvaluationBox.Text = (formulaResult ?? "").ToString()));
        }