Exemple #1
0
        public static void Main(string[] args)
        {
            try
            {
                DisplayAppHeader();

                using (UnitOfWork unitOfWork = new UnitOfWork("medicx.zmdx"))
                {
                    MedicXApplication medicXApplication = new MedicXApplication(unitOfWork);
                    medicXApplication.Run();
                }
            }
            catch (Exception ex)
            {
                CustomConsole.WriteError(ex);
                CustomConsole.Pause();
            }

            Thread.Sleep(300);
        }
Exemple #2
0
 public ControllerPool(UnitOfWork unitOfWork, MedicXApplication medicXApplication)
 {
     this.unitOfWork        = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     this.medicXApplication = medicXApplication ?? throw new ArgumentNullException(nameof(medicXApplication));
 }