示例#1
0
        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));
        }
示例#2
0
        public GuntherMainView(GuntherModel model, bool autoStart)
        {
            InitializeComponent();

            this.Setup();

            this.Model = model;

            this.InitializeComponents();

            this.BindViewToModel();

            if (autoStart)
            {
                model.Start();
            }
        }