private static void CreateProjects(ProjectHandler projectHandler)
        {
            projectHandler.CreateProject(new Message
            {
                Method   = "create",
                Resource = "project",
                Fields   = new Fields
                {
                    Projects = new List <Project>
                    {
                        new Project
                        {
                            Title         = "MyProject1",
                            Description   = "This is my first project!",
                            OwnerUsername = "******"
                        }
                    }
                }
            });

            projectHandler.CreateProject(new Message
            {
                Method   = "create",
                Resource = "project",
                Fields   = new Fields
                {
                    Projects = new List <Project>
                    {
                        new Project
                        {
                            Title         = "MyProject2",
                            Description   = "This is my second project!",
                            OwnerUsername = "******"
                        }
                    }
                }
            });

            projectHandler.CreateProject(new Message
            {
                Method   = "create",
                Resource = "project",
                Fields   = new Fields
                {
                    Projects = new List <Project>
                    {
                        new Project
                        {
                            Title         = "MyProject3",
                            Description   = "This is my third project!",
                            OwnerUsername = "******"
                        }
                    }
                }
            });
        }
Пример #2
0
        public void OnGameSelected()
        {
            if (!Guard.IsStringValid(JetPath))
            {
                JetPath = Environment.CurrentDirectory + "\\Backups\\" + GameName + "_Original.jet";
            }

            if (DoWork(GameName) == false)
            {
                this.Close();
                return;
            }

            ZipForm.existingJetFile = JetPath;

            Serializer.cfg.CurrentGame = GameName;
            Serializer.SaveSettings();

            ProjectHandler.CreateProject();
            CurrentProjectVariables.GameName = GameName;
            CurrentProjectVariables.GamePath = ReturnGamePath(GameName);

            var getName = new SetProjectName();

            getName.Show();

            this.Close();
        }
Пример #3
0
        private void New_BMC_Proj_Button_Click(object sender, EventArgs e)
        {
            ProjectHandler.CreateProject();
            CurrentProjectVariables.GameName = "BMC";
            CurrentProjectVariables.GamePath = Serializer.cfg.BMC_Directory;

            NewProject("BMC");
        }
Пример #4
0
 private void New_BTDB_Proj_Click(object sender, EventArgs e)
 {
     Serializer.cfg.CurrentGame = "BTDB";
     ProjectHandler.CreateProject();
     CurrentProjectVariables.GameName = "BTDB";
     CurrentProjectVariables.GamePath = Serializer.cfg.BTDB_Directory;
     NewProject(Serializer.cfg.CurrentGame);
 }
Пример #5
0
        public int CreateProject(CreateProjectModel model)
        {
            ProjectHandler handler = new ProjectHandler(new ProjectDataAccess());

            return(handler.CreateProject(model));
        }