예제 #1
0
파일: Program.cs 프로젝트: MWadolowski/DC
        public static void Main(string[] args)
        {
            var model    = ShitHelper.Model;
            var consumer = new CommonMessageHandler(model);

            ShitHelper.Handler = new ServerHandler();
            model.BasicConsume(StepNames.OrderAccepted, false, String.Empty, false, false, null, consumer);
            model.BasicConsume(StepNames.OrderForImplementation, false, String.Empty, false, false, null, consumer);
            model.BasicConsume(StepNames.OrderMerged, false, String.Empty, false, false, null, consumer);
            model.BasicConsume(StepNames.OrderSucces, false, String.Empty, false, false, null, consumer);
            CreateWebHostBuilder(args).Build().Run();
        }
예제 #2
0
        public MainWindow()
        {
            EmailRepository.Start();

            InitializeComponent();
            Process.MyStep = StepNames.OrderReceived;
            Database.start();
            var model    = ShitHelper.Model;
            var consumer = new CommonMessageHandler(model);

            ShitHelper.Handler = new FirstDecisionHandler();
            UIMessageUpdater.UpdaterWithUi.UpdateUi = UpdateUi;
            AcceptHandler.UpdaterWithUi.UpdateUi    = ChooseWorkers;
            model.BasicConsume(StepNames.OrderReceived, false, String.Empty, false, false, null, consumer);
            model.BasicConsume(StepNames.OrderAccepted, false, String.Empty, false, false, null, consumer);
            model.BasicConsume(StepNames.OrderDeclined, false, String.Empty, false, false, null, consumer);
        }