Esempio n. 1
0
        public MainWindow()
        {
            var kernel = new StandardKernel(new NinjectRegistrations(), new ServiceModule("123567891011001112"));

            crudServ = kernel.Get <IDbCrud>();
            outServ  = kernel.Get <IOutService>();
            InitializeComponent();
            refresh();
        }
Esempio n. 2
0
 public OutController(IOutService outService,
                      IPatientService patientService,
                      IUsedDrugService usedDrugService,
                      IHealthRegionService healthRegionService,
                      MedicDataLocalization medicDataLocalization,
                      ICacheable medicCache,
                      IMedicLoggerService medicLoggerService,
                      IToEHRConverter toEHRConverter,
                      IFormattableFactory formattableFactory)
     : base(patientService, healthRegionService, medicCache, medicDataLocalization)
 {
     OutService         = outService ?? throw new ArgumentNullException(nameof(outService));
     UsedDrugService    = usedDrugService ?? throw new ArgumentNullException(nameof(usedDrugService));
     MedicLoggerService = medicLoggerService ?? throw new ArgumentNullException(nameof(medicLoggerService));
     ToEHRConverter     = toEHRConverter ?? throw new ArgumentNullException(nameof(toEHRConverter));
     FormattableFactory = formattableFactory ?? throw new ArgumentNullException(nameof(formattableFactory));
 }