예제 #1
0
        public void BtnDelete_Click(object sender, EventArgs e)
        {
            int tmpindex = 0;

            if (E_Globals.Editorindex <= 0)
            {
                return;
            }

            ClientDataBase.ClearNpc(E_Globals.Editorindex);

            tmpindex = lstIndex.SelectedIndex;
            lstIndex.Items.RemoveAt(E_Globals.Editorindex - 1);
            lstIndex.Items.Insert(E_Globals.Editorindex - 1, E_Globals.Editorindex + ": " + Types.Npc[E_Globals.Editorindex].Name);
            lstIndex.SelectedIndex = tmpindex;

            E_Editors.NpcEditorInit();
        }