public ProjectEstimateForm(ProjectSession session) { Session = session; InitializeComponent(); UpdateAndShow(); }
public AddTaskForm(ProjectScopeForm projectScopeForm, ProjectSession session) { AlreadySaved = false; ProjectScopeForm = projectScopeForm; Session = session; InitializeComponent(); }
public EditTaskForm(ProjectTask projectTask, ProjectScopeForm projectScopeForm, ProjectSession session) { AlreadySaved = false; ProjectTask = projectTask; ProjectScopeForm = projectScopeForm; Session = session; InitializeComponent(); }
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)); }
public ProjectScopeForm(ProjectEstimateForm projectEstimateForm, ProjectSession session) { ProjectEstimateForm = projectEstimateForm; Session = session; InitializeComponent(); }