void OnEnable()
 {
     m_BuildDirectory = Application.dataPath + "/../Build";
     Project.Activate();
     Project.clientReadyStateChanged += CreateEstablishingConnectionUI;
     CreateEstablishingConnectionUI(Project.projectIdState);
 }
Beispiel #2
0
        public IActionResult Put([FromBody] ProjectDto p)
        {
            Project proj = _context.Project
                           .Include(b => b.OwningClient)
                           .Where(b => b.Id == p.Id)
                           .FirstOrDefault();

            if (proj.IsActive != p.IsActive)
            {
                if (p.IsActive)
                {
                    //Call activate on project domain
                    proj.Activate();
                }
                else
                {
                    //call disable on project domain
                    proj.Disable();
                }
            }
            else
            {
                //Update fields
                proj.Name    = p.Name;
                proj.Details = p.Details;
                //proj.IsActive = p.IsActive;
                proj.Code = p.Code;
            }


            _context.SaveChanges();
            return(new NoContentResult());
        }
Beispiel #3
0
    public void OnEnable()
    {
        Project.clientReadyStateChanged += OnClientReadyStateChanged;
        Project.Activate();
        AssemblyReloadEvents.beforeAssemblyReload += OnBeforeAssemblyReload;

        RefreshUI();
    }
        public bool Activate(Project project)
        {
            project.Activate();

            project.UpdateProject(project);

            _repository.Update(project);

            if (Commit())
            {
                return(true);
            }

            return(false);
        }