Пример #1
0
        public Project(string name, string info, string author, System.Drawing.Bitmap icon)
        {
            IDEPath = name;
            Directory.CreateDirectory(ProjectPath + name);
            Directory.CreateDirectory(ProjectPath + name + "/Content/");

            BasePath    = ProjectPath + name + "/";
            ContentPath = BasePath + "Content/";

            ProjData = new DataIO(BasePath + "projectData");

            ProjData.AddData(new DataString(name), "Name");
            ProjData.AddData(new DataString(info), "Info");
            ProjData.AddData(new DataString(author), "Author");
            ProjData.AddData(new DataString(IDEPath), "IDEPath");
            ProjData.AddData(new DataBitmap(icon), "Icon");

            ProjData.Save( );
        }