private void resetCurrentATFolder()
 {
     int index = comboBox_ATFolders.SelectedIndex;
     if (index < 0)
     {
         currentAntetypeFolder = null;
     }
     else
     {
         AntetypeFolder obj = mapsManager.antetypesManager[comboBox_ATFolders.SelectedIndex];
         if(obj!=null)
         {
             currentAntetypeFolder = obj;
         }
     }
 }
 private void button_ATPack_Add_Click(object sender, EventArgs e)
 {
     String name = "文件夹" + mapsManager.antetypesManager.Count();
     SmallDialog_WordEdit txtDialog = new SmallDialog_WordEdit("新建角色原型文件夹", name);
     txtDialog.ShowDialog();
     name = txtDialog.getValue();
     AntetypeFolder folder = new AntetypeFolder(mapsManager.antetypesManager);
     folder.name = name;
     mapsManager.antetypesManager.Add(folder);
     refreshAntetypeSyleList();
     comboBox_ATFolders.SelectedIndex = mapsManager.antetypesManager.Count() - 1;
     updateContainer_AT_Buffer();
 }
        //刷新数据显示========================================================
        public void updateRes()
        {
            //载入地图
            listBox_Maps.Items.Clear();
            for (int i = 0; i < srcForm.mapsManager.getElementCount(); i++)
            {
                String text = "" + srcForm.mapsManager.getElement(i).getName();
                listBox_Maps.Items.Add(text);
            }
            listBox_Maps.Refresh();
            //载入角色原型
            ListBox_AnteType.Items.Clear();
            for (int i = 0; i < srcForm.mapsManager.antetypesManager.Count(); i++)
            {
                AntetypeFolder folder = srcForm.mapsManager.antetypesManager[i];
                for (int j = 0; j < folder.Count(); j++)
                {
                    Antetype anteType = folder[i];
                    String   text     = "";
                    if (anteType != null)
                    {
                        text = "[" + anteType.getFolderName() + "]" + anteType.name;
                        if (anteType.Actor == null)
                        {
                            MessageBox.Show("角色原型“" + anteType.name + "”指向的角色为空!", "警告", MessageBoxButtons.OK);
                        }
                    }
                    else
                    {
                        text = "错误的角色原型";
                    }
                    ListBox_AnteType.Items.Add(text);
                }
            }
            ListBox_AnteType.Refresh();
            //载入动画
            listBox_Anims.Items.Clear();
            MActorsManager actorsManager = srcForm.form_MAnimation.form_MActorList.actorsManager;

            for (int i = 0; i < actorsManager.Count(); i++)
            {
                MActorFolder folder = actorsManager[i];
                for (int j = 0; j < folder.Count(); j++)
                {
                    MActor actor = folder[j];
                    String text  = folder.name + "_" + actor.name;
                    listBox_Anims.Items.Add(text);
                }
            }
            listBox_Anims.Refresh();
            //载入触发器
            listBox_Triggers.Items.Clear();
            listBox_Triggers.Refresh();
            //载入属性表
            listBox_Props.Items.Clear();
            for (int i = 0; i < srcForm.propertyTypesManager.getElementCount(); i++)
            {
                String text = "" + ((PropertyTypeElement)srcForm.propertyTypesManager.getElement(i)).name;
                listBox_Props.Items.Add(text);
            }
            listBox_Props.Refresh();
        }