コード例 #1
0
        private void addNGMemberButton_Click(object sender, EventArgs e)
        {
            ThreadListNGCollectionEditDialog tlngced = new ThreadListNGCollectionEditDialog();

            tlngced.NGName = "";
            tlngced.ShowDialog(this);
            this.listView1.Items.Add(tlngced.NGName);
        }
コード例 #2
0
        private void listView1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.listView1.SelectedItems.Count <= 0)
            {
                return;
            }
            ThreadListNGCollectionEditDialog tlngced = new ThreadListNGCollectionEditDialog();

            tlngced.NGName = this.listView1.SelectedItems[0].Text;
            tlngced.ShowDialog(this);
            this.listView1.SelectedItems[0].Text = tlngced.NGName;
        }