Ejemplo n.º 1
0
        /// <summary>
        /// Shows an exception.
        /// </summary>
        /// <param name="message">Exception message.</param>
        public void ShowException(string message)
        {
            VbaException e = new VbaException(message);

            Logger.Warn("VBA code called the XLToolbox.Vba.Api.Throw method", e);
            VbaExceptionViewModel vm = new VbaExceptionViewModel(e);

            vm.InjectInto <VbaExceptionView>().ShowDialogInForm();
        }
Ejemplo n.º 2
0
 public VbaExceptionViewModel(VbaException exception)
     : this()
 {
     VbaException = exception;
 }