private async Task SaveData() { ThreadListAbone tla = new ThreadListAbone(); foreach (ListViewItem i in listView1.Items) { tla.NGCollection.Add(i.Text); } await tla.InstSave(); }
private void LoadData() { ThreadListAbone tla = new ThreadListAbone(); tla.InstLoad(); List <string> li = tla.NGCollection; foreach (string m in li) { this.listView1.Items.Add(m); } return; }