コード例 #1
0
        private void SaveButton_Click(object sender, EventArgs e)
        {
            var list = NPCInfoListBox.SelectedItems.Cast <NPCInfo>().ToList();

            if (list.Count == 0)
            {
                MessageBox.Show("Not selected any Npc");
                return;
            }

            for (int i = 0; i < list.Count; i++)
            {
                NPCInfo.SaveNPCInfoDB(list[i]);
            }
            MessageBox.Show("Saved Npc(s)");
        }