forked from Ken98045/On-Guard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInterestingItemsDialog.cs
45 lines (35 loc) · 1.16 KB
/
InterestingItemsDialog.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace SAAI
{
public partial class InterestingItemsDialog : Form
{
public InterestingItemsDialog(AnalysisResult analysisResult)
{
InitializeComponent();
foreach (var interest in analysisResult.InterestingObjects)
{
ListViewItem item = new ListViewItem
{
Text = interest.Area.AOIName
};
item.SubItems.Add(interest.Area.AOIType.ToString());
item.SubItems.Add(interest.FoundObject.Label);
item.SubItems.Add(interest.FoundObject.Confidence.ToString());
item.SubItems.Add(interest.Overlap.ToString());
item.SubItems.Add(interest.FoundObject.ObjectRectangle.Width.ToString());
item.SubItems.Add(interest.FoundObject.ObjectRectangle.Height.ToString());
interestingListView.Items.Add(item);
}
foreach (string item in analysisResult.FailureReasons)
{
failuresList.Items.Add(item);
}
}
private void DoneButton_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
}
}
}