Beispiel #1
0
        protected void ShowErrorWindow(Exception exception, IWindowContext parentWindowContext)
        {
            Logger.Exception(exception);
            ErrorWindowViewModel errorWindowViewModel = new ErrorWindowViewModel(exception.ToString());
            IWindowContext       errorWindowContext   = WindowManager.CreateWindow(RegisteredWindows.WindowKey.ERROR_WINDOW, errorWindowViewModel, parentWindowContext);

            errorWindowContext.ShowDialog();
        }
        protected void ShowErrorWindow(Exception exception, IWindowContext parentWindowContext)
        {
            try
            {
                Logger.Exception(exception);
            }
            catch
            {
            }
            ErrorWindowViewModel errorWindowViewModel = new ErrorWindowViewModel(exception.ToString(), MainModel.Localization.CurrentLanguage);
            IWindowContext       errorWindowContext   = WindowManager.CreateWindow(RegisteredWindows.WindowKey.ERROR_WINDOW, errorWindowViewModel, parentWindowContext);

            errorWindowContext.ShowDialog();
        }