Ejemplo n.º 1
0
        private void CreateProject()
        {
            var projectManager = new ProjectManager {MdiParent = this};
            projectManager.Show();

            var createProject = new CreateProject();
            if (createProject.ShowDialog() == DialogResult.Cancel)
                projectManager.Close();
            else
                projectManager.LoadProject(createProject.Tag as ProjectDto);
        }
Ejemplo n.º 2
0
        private void CopyProject()
        {
            var request = new ProjectRequest();
            _project.Tasks = GetTask();
            request.Project = _project;

            var newProject = new ProjectFactory().CopyProject(request).Project;
            newProject.Name = @"Copia de " + newProject.Name;

            var projectManager = new ProjectManager { MdiParent = ParentForm};
            projectManager.Show();
            projectManager.LoadProject(newProject);
        }