-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfrm_ErrorList.cs
49 lines (43 loc) · 1.28 KB
/
frm_ErrorList.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
46
47
48
49
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace BulkImportDelimitedFlatFiles
{
public partial class frm_ErrorList : Form
{
public frm_ErrorList()
{
InitializeComponent();
}
private void lv_errorList_SelectedIndexChanged(object sender, EventArgs e)
{
}
public void clearItemList ()
{
this.lv_errorList.Clear();
}
public void addItemToList(ListViewItem lvi)
{
lv_errorList.Items.Add(lvi);
}
private void lv_errorList_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
{
txt_error.Text = lv_errorList.FocusedItem.Tag.ToString();
}
private void frm_ErrorList_Shown(object sender, EventArgs e)
{
if(lv_errorList.Items.Count > 0)
{
lv_errorList.FocusedItem = lv_errorList.Items[0];
lv_errorList.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);
//MessageBox.Show(lv_errorList.Items[0].Tag.ToString());
}
}
}
}