Beispiel #1
0
 private void AddIssue(ObservableList <AnalyzerItemBase> issuesList, AnalyzerItemBase issue)
 {
     lock (mAddIssuesLock)
     {
         issuesList.Add(issue);
     }
 }
Beispiel #2
0
        private void AnalyzerItemsGrid_RowChangedEvent(object sender, EventArgs e)
        {
            txtBlkAnalyzerIssue.Text = string.Empty;
            TextBlockHelper TBH = new TextBlockHelper(txtBlkAnalyzerIssue);

            AnalyzerItemBase a = (AnalyzerItemBase)AnalyzerItemsGrid.CurrentItem;

            if (a != null)
            {
                if (a.ItemClass != null)
                {
                    TBH.AddLineBreak();
                    TBH.AddBoldText("Item Type:");
                    TBH.AddLineBreak();
                    TBH.AddText(a.ItemClass.ToString());
                    TBH.AddLineBreak();
                }

                if (a.ItemName != null)
                {
                    TBH.AddLineBreak();
                    TBH.AddBoldText("Item Name:");
                    TBH.AddLineBreak();
                    TBH.AddText(a.ItemName.ToString());
                    TBH.AddLineBreak();
                }

                if (a.ItemParent != null)
                {
                    TBH.AddLineBreak();
                    TBH.AddBoldText("Item Parent:");
                    TBH.AddLineBreak();
                    TBH.AddText(a.ItemParent.ToString());
                    TBH.AddLineBreak();
                }

                if (a.Description != null)
                {
                    TBH.AddLineBreak();
                    TBH.AddBoldText("Issue:");
                    TBH.AddLineBreak();
                    TBH.AddText(a.Description.ToString());
                    TBH.AddLineBreak();
                }

                if (a.Details != null)
                {
                    TBH.AddLineBreak();
                    TBH.AddBoldText("Issue Details:");
                    TBH.AddLineBreak();
                    TBH.AddText(a.Details.ToString());
                    TBH.AddLineBreak();
                }

                if (a.Impact != null)
                {
                    TBH.AddLineBreak();
                    TBH.AddBoldText("Issue Impact:");
                    TBH.AddLineBreak();
                    TBH.AddText(a.Impact.ToString());
                    TBH.AddLineBreak();
                }

                if (a.HowToFix != null)
                {
                    TBH.AddLineBreak();
                    TBH.AddBoldText("How To Fix:");
                    TBH.AddLineBreak();
                    TBH.AddText(a.HowToFix.ToString());
                    TBH.AddLineBreak();
                }

                TBH.AddLineBreak();
                TBH.AddBoldText("Can be Auto Fixed:");
                TBH.AddLineBreak();
                TBH.AddText(a.CanAutoFix.ToString());
                TBH.AddLineBreak();
            }
        }