private void LoadXml()
        {
            GoManager.Clear();

            XMLLoader xmlLoader = new XMLLoader();
            xmlLoader.AddingObject += GoManager.OnAddingObject;
            xmlLoader.LoadXMLMap(_CurrentProjectPath);
            UndoRedoStack.Clear();
        }
 private void LoadPrefab(string filePath)
 {
     XMLLoader xmlLoader = new XMLLoader();
     xmlLoader.AddingObject += GoManager.OnAddingObject;
     xmlLoader.LoadXMLPrefab(filePath,_CurrentProjectPath);
 }
        private void ItemDoubleClicked(FileModel file)
        {
            if (file.Extension.ToLower() == ".ovm")
            {
                var obj = new GameObject();
                obj.Name = NameManeger.GetNameFromPath(file.FilePath);

                var modelcomp = new ModelComponent(file.FilePath);
                modelcomp.Shader = new PosNormColEffect();
                obj.AddComponent(modelcomp);
                UndoRedoStack.ClearRedoStack();
                GameObjectManager.Instance().AddGameObject(obj);
            }
            if (file.Extension.ToLower() == ".xmlprefab")
            {
                LoadPrefab(file.FilePath);
            }
            if (file.Extension.ToLower() == ".xmlmap")
            {
                GoManager.Clear();

                XMLLoader xmlLoader = new XMLLoader();
                xmlLoader.AddingObject += GoManager.OnAddingObject;
                xmlLoader.LoadXMLMap(file.FilePath,_CurrentProjectPath);
                UndoRedoStack.Clear();
            }
        }