예제 #1
0
        private void FrmExport_Load(object sender, System.EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            var list = _records.GetAllRecords();

            foreach (var item in list)
            {
                var listView = new ListViewItem(item.CandidatePin);
                listView.SubItems.Add(item.Position);
                listView.SubItems.Add(item.Firstname);
                listView.SubItems.Add(item.Lastname);
                listView.SubItems.Add(item.CandidateEmail);
                listView.SubItems.Add(item.VoterPin);
                listView.SubItems.Add(item.Gender);
                listView.SubItems.Add(item.Phonenumber);
                listView.SubItems.Add(item.VoterEmail);
                mtListView.Items.Add(listView);
            }
            Cursor.Current = Cursors.Default;
        }