Exemple #1
0
        public void Initialize()
        {
            TestGui = new GUI.GUI(false);
            TestGui.tvItems.Nodes.Clear();

            if (File.Exists(NewItemFilePath))
            {
                File.Delete(NewItemFilePath);
            }
            if (File.Exists(RenamedItemPath))
            {
                File.Delete(RenamedItemPath);
            }
            if (File.Exists(NewItemInFolderFilePath))
            {
                File.Delete(NewItemInFolderFilePath);
            }
            if (File.Exists(RenamedItemInFolderFilePath))
            {
                File.Delete(RenamedItemInFolderFilePath);
            }
            if (Directory.Exists(NewFolderFilePath))
            {
                Directory.Delete(NewFolderFilePath);
            }
            if (!Directory.Exists("Content/" + RessourcePath))
            {
                Directory.CreateDirectory("Content/" + RessourcePath);
            }

            TestGui.AddEditor(new EditorInfo(new string[] { BaseEditor.GUIRootPathUnitsNormal, BaseEditor.GUIRootPathUnits }, RessourcePath, new string[] { ItemExtention },
                                             typeof(UnitNormalEditor)));

            TestGui.InitGUI();
        }