//合并文字资源
        public void combine(TextsManager src_Manager)
        {

            for (int i = 0; i < src_Manager.getElementCount(); i++)
            {
                TextElement srcElement = src_Manager.getElement(i);
                TextElement newElement = null;
                //寻找重复
                for (int j = 0; j < getElementCount(); j++)
                {
                    TextElement localElement = getElement(j);
                    if (localElement.getValue().Equals(srcElement.getValue()))
                    {
                        newElement = localElement;
                        break;
                    }
                }
                if (newElement == null)
                {
                    newElement=new TextElement(this);
                    newElement.setValue(srcElement.getValue());
                    addElement(newElement);
                }
            }
            //将显示容器置空
            this.listBox = null;
            this.listBoxAide = null;
            Console.WriteLine(this.GetHashCode());
        }
예제 #2
0
 //合并文字资源
 public void combine(TextsManager src_Manager)
 {
     for (int i = 0; i < src_Manager.getElementCount(); i++)
     {
         TextElement srcElement = src_Manager.getElement(i);
         TextElement newElement = null;
         //寻找重复
         for (int j = 0; j < getElementCount(); j++)
         {
             TextElement localElement = getElement(j);
             if (localElement.getValue().Equals(srcElement.getValue()))
             {
                 newElement = localElement;
                 break;
             }
         }
         if (newElement == null)
         {
             newElement = new TextElement(this);
             newElement.setValue(srcElement.getValue());
             addElement(newElement);
         }
     }
     //将显示容器置空
     this.listBox     = null;
     this.listBoxAide = null;
     Console.WriteLine(this.GetHashCode());
 }
예제 #3
0
 public void releaseRes()
 {
     m_HistoryManager=null;
     textsManager = null;
     mapImagesManager = null;
     mapsManager = null;
     varIntManager = null;
     varStringManager = null;
     triggerFunctionManager = null;
     contextFunctionManager = null;
     executionFunctionManager = null;
     //triggersManager = null;
     propertyTypesManager = null;
 }
예제 #4
0
        //初始化参数===========================================================
        public void initData(String path)
        {
            path_file = path;
            path_folder = path_file.Substring(0, path_file.LastIndexOf('\\') + 1);

            m_HistoryManager = new UndoManager();
            m_HistoryManager.MaxUndoLevel = 100;
            textsManager = new TextsManager(this);

            mapImagesManager = new MImgsManager(this);
            mapsManager = new MapsManager(this, mapImagesManager);

            varIntManager = new VarsManager(this);
            varStringManager = new VarsManager(this);
            triggerFunctionManager = new FunctionsManager(this);
            contextFunctionManager = new FunctionsManager(this);
            executionFunctionManager = new FunctionsManager(this);
            iDsManager = new VarsManager(this);
            propertyTypesManager = new PropertyTypesManager(this);

            form_MAnimation = new Form_MAnimation(this);
            mapsManager.initAntetype(form_MAnimation.form_MActorList.actorsManager);
            if (Consts.PATH_PROJECT_FILEPATH != null)
            {
                this.Text = Consts.PATH_PROJECT_FILEPATH;
            }
            userDoc.initUserData(path);//读入数据
        }
 public TextElement(TextsManager parentT)
 {
     this.parent = parentT;
 }
 public TextElement(String textT, TextsManager parentT)
 {
     this.parent = parentT;
     text = textT;
 }
예제 #7
0
 public TextElement(TextsManager parentT)
 {
     this.parent = parentT;
 }
예제 #8
0
 public TextElement(String textT, TextsManager parentT)
 {
     this.parent = parentT;
     text        = textT;
 }
 public void releaseRes()
 {
     textsManager = null;
 }
 public Form_TextsManager(TextsManager textsManagerT)
 {
     InitializeComponent();
     this.textsManager = textsManagerT;
     initParams();
 }