I want to get list listview items in the static class. Because I want to pass this class variable to another class. So I have tried...
- public static class FileMngUserID
- {
- public static List<int> UserId;
- public static List<string> ImgName;
- }
- foreach (DocumentsUser item in listView1.SelectedItems)
- {
- FileMngUserID.UserId.Add(Convert.ToInt32(item.UserId));
- FileMngUserID.ImgName.Add(item.Parent_File_Name);
- }

Amit GuptaPosted Dec 22, 2016, 9:19 AM
Amit GuptaPosted Dec 22, 2016, 9:33 AM
Abhilash J APosted Dec 22, 2016, 9:24 AM
Abhilash J APosted Dec 22, 2016, 9:15 AM
Amit GuptaPosted Dec 22, 2016, 9:10 AM