static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); GuntherCommandLineArgumentsStructure inputArgs = new GuntherCommandLineArgumentsStructure(args); // Should be done via configuration of the GuntherModelImodel. GuntherModel model = new GuntherModel(); model.DateOperationsProvider = new BasicDateOperationProvider(); model.ScheduledJobsListSource = new XmlFileScheduledJobSpecificationsListSource(); //new DummyScheduledJobSpecificationsListSource(); model.JobRepository = new BasicJobRepository(); Application.Run(new GuntherMainView(model, true)); }
public GuntherMainView(GuntherModel model, bool autoStart) { InitializeComponent(); this.Setup(); this.Model = model; this.InitializeComponents(); this.BindViewToModel(); if (autoStart) { model.Start(); } }