Patcher.UI.Windows.MainWindow.ShowCurrentProblem C# (CSharp) Method

ShowCurrentProblem() private method

private ShowCurrentProblem ( ) : void
return void
        private void ShowCurrentProblem()
        {
            if (shownProblems == null || shownProblems.Length == 0)
            {
                IssueCounterLabel.Content = string.Empty;
                IssueMessageLabel.Content = string.Empty;
                IssueFileLabel.Content = string.Empty;
                IssueLineLabel.Content = string.Empty;
                IssueColumnLabel.Content = string.Empty;
                IssueSolutionLabel.Content = string.Empty;
            }
            else
            {
                if (shownProblems.Length > 1)
                {
                    IssueCounterLabel.Content = string.Format("{0}/{1}", currentProblem + 1, shownProblems.Length);
                }
                else
                {
                    IssueCounterLabel.Content = string.Empty;
                }

                var problem = shownProblems[currentProblem];
                IssueMessageLabel.Content = problem.Message;
                IssueFileLabel.Content = problem.File;
                IssueLineLabel.Content = problem.Line.HasValue ? problem.Line.ToString() : string.Empty;
                IssueColumnLabel.Content = problem.Column.HasValue ? problem.Column.ToString() : string.Empty;
                IssueSolutionLabel.Content = problem.Solution;
            }
        }