예제 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var conf = new ConfigurationBuilder();

            conf.AddJsonFile("appsettings");

            var services = new ServiceCollection();


            Startup start = new Startup(conf.Build());

            start.ConfigureRepositoryServices(services);

            var helper = HI.GetInst(services.BuildServiceProvider());

            var            mainForm = new FrmMain();
            IObserverEvent observer = new FrmMainObserver(mainForm);

            CoRBuilder.Listener?.Register(observer);

            Application.Run(mainForm);
        }
 public StepContainerObserver(FrmMain form, FrmMainObserver obs)
 {
     HelperUI.ModifyMethod(form, () =>
     {
         FrmMainObserver        = obs;
         Container              = new UIStepGenerator();
         Container.StepObserver = this;
         form.panelSteps.Controls.Add(Container);
     });
 }