Пример #1
0
        // Create
        internal DXProject(string path, DXProjectManifest manifest) : this()
        {
            this.FileName = path;
            this.Manifest = manifest;

            Save();
        }
Пример #2
0
        public ManifestPackageFile(DXProjectManifest manifest)
        {
            var xmlStream     = new MemoryStream();
            var xmlSerializer = new XmlSerializer(typeof(DXProjectManifest));

            xmlSerializer.Serialize(xmlStream, manifest);

            this.Stream = xmlStream;
            this.Name   = ManifestPackageFile.FileName;
        }
Пример #3
0
        public static async t.Task <DXProject> Create(string path, DXProjectManifest manifest)
        {
            RecentDB.AddFile(
                GlobalModel.Instance.User,
                Path.GetFullPath(path));

            var response = await DXAPI.CreateProject(
                manifest.ProjectName,
                manifest.PackageName,
                "1.0",
                manifest.OwnerUID,
                manifest.Guid);

            if (response.Status == APIResponseStatus.Success)
            {
                return(new DXProject(path, manifest));
            }
            else
            {
                MessageBox.Show($"오류: {response.Message}", "Error", MessageBoxButton.OK, MessageBoxImage.Information);
            }

            return(null);
        }
Пример #4
0
        public static DXProject Create(string path, DXProjectManifest manifest)
        {
            RecentDB.AddFile(Path.GetFullPath(path));

            return(new DXProject(path, manifest));
        }