示例#1
0
        public ProjectEstimateForm(ProjectSession session)
        {
            Session = session;
            InitializeComponent();

            UpdateAndShow();
        }
示例#2
0
        public ProjectEstimateForm(ProjectSession session)
        {
            Session = session;
            InitializeComponent();

            UpdateAndShow();
        }
示例#3
0
        public AddTaskForm(ProjectScopeForm projectScopeForm, ProjectSession session)
        {
            AlreadySaved     = false;
            ProjectScopeForm = projectScopeForm;
            Session          = session;

            InitializeComponent();
        }
示例#4
0
        public EditTaskForm(ProjectTask projectTask, ProjectScopeForm projectScopeForm, ProjectSession session)
        {
            AlreadySaved = false;
            ProjectTask = projectTask;
            ProjectScopeForm = projectScopeForm;
            Session = session;

            InitializeComponent();
        }
示例#5
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var configurationDirectory = Path.Combine(Environment.GetFolderPath(
                                                          Environment.SpecialFolder.ApplicationData), "Guesstimate");

            var taskTemplatesPath = Path.Combine(configurationDirectory, "task_templates.json");

            var projectTaskTemplatesLoader = new ProjectTaskTemplatesLoader();

            var taskTemplates = projectTaskTemplatesLoader.LoadTemplates(taskTemplatesPath);

            var templatePersister = new ProjectTaskTemplatesPersister();

            templatePersister.PersistTemplates(taskTemplates, taskTemplatesPath);

            var session = new ProjectSession(taskTemplatesPath, projectTaskTemplatesLoader, templatePersister,
                                             new ProjectScopeLoader(), new ProjectScopePersister(), taskTemplates, new ProjectScope());

            Application.Run(new ProjectEstimateForm(session));
        }
示例#6
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var configurationDirectory = Path.Combine(Environment.GetFolderPath(
                Environment.SpecialFolder.ApplicationData), "Guesstimate");

            var taskTemplatesPath = Path.Combine(configurationDirectory, "task_templates.json");

            var projectTaskTemplatesLoader = new ProjectTaskTemplatesLoader();

            var taskTemplates = projectTaskTemplatesLoader.LoadTemplates(taskTemplatesPath);

            var templatePersister = new ProjectTaskTemplatesPersister();

            templatePersister.PersistTemplates(taskTemplates, taskTemplatesPath);

            var session = new ProjectSession(taskTemplatesPath, projectTaskTemplatesLoader, templatePersister,
                new ProjectScopeLoader(), new ProjectScopePersister(), taskTemplates, new ProjectScope());

            Application.Run(new ProjectEstimateForm(session));
        }
示例#7
0
 public ProjectScopeForm(ProjectEstimateForm projectEstimateForm, ProjectSession session)
 {
     ProjectEstimateForm = projectEstimateForm;
     Session = session;
     InitializeComponent();
 }
示例#8
0
 public ProjectScopeForm(ProjectEstimateForm projectEstimateForm, ProjectSession session)
 {
     ProjectEstimateForm = projectEstimateForm;
     Session             = session;
     InitializeComponent();
 }