예제 #1
0
        private async void SaveData()
        {
            SimpleAbone sa = new SimpleAbone();

            foreach (ListViewItem m in listView1.Items)
            {
                sa.NGCollection.Add(m.SubItems[0].Text, m.SubItems[1].Text);
            }
            await sa.InstSave();
        }
예제 #2
0
        private void LoadData()
        {
            SimpleAbone sa = new SimpleAbone();

            sa.InstLoad();
            NameValueCollection ngs = sa.NGCollection;

            foreach (string item in ngs)
            {
                string[] data = ngs.GetValues(item);
                foreach (string im in data)
                {
                    ListViewItem lvi = new ListViewItem(new string[] { item, im });
                    listView1.Items.Add(lvi);
                }
            }
        }