コード例 #1
0
        public FormAnaSayfaIcerik()
        {
            var container = DependecyResolver.NinjectDependecyContainer.RegisterDependency(new StandardKernel());

            _personelRepository         = container.Get <IPersonelRepository>();
            _sistemYoneticisiRepository = container.Get <ISistemYoneticisiRepository>();
            _klinikRepository           = container.Get <IKlinikRepository>();
            _hizmetRepository           = container.Get <IHizmetRepository>();
            _tahlilRepository           = container.Get <ITahlilRepository>();
            _kurumRepository            = container.Get <IKurumRepository>();
            _randevuRepository          = container.Get <IRandevuRepository>();

            InitializeComponent();
        }
コード例 #2
0
        public FormSistemYonetim()
        {
            var container = DependecyResolver.NinjectDependecyContainer.RegisterDependency(new StandardKernel());

            _klinikRepository = container.Get <IKlinikRepository>();
            _klinikService    = container.Get <IKlinikService>();
            _kurumRepository  = container.Get <IKurumRepository>();
            _kurumService     = container.Get <IKurumService>();
            _unvanRepository  = container.Get <IUnvanRepository>();
            _unvanService     = container.Get <IUnvanService>();
            _hizmetRepository = container.Get <IHizmetRepository>();
            _hizmetService    = container.Get <IHizmetService>();

            InitializeComponent();
        }
コード例 #3
0
 public FormRandevuIslemleri()
 {
     #region NinjectAtamalar
     var container = DependecyResolver.NinjectDependecyContainer.RegisterDependency(new StandardKernel());
     _hastaRepository    = container.Get <IHastaRepository>();
     _hastaService       = container.Get <IHastaService>();
     _ilceRepository     = container.Get <IIlceRepository>();
     _ilRepository       = container.Get <IILRepository>();
     _kurumRepository    = container.Get <IKurumRepository>();
     _personelService    = container.Get <IPersonelService>();
     _klinikRepository   = container.Get <IKlinikRepository>();
     _randevuService     = container.Get <IRandevuService>();
     _personelRepository = container.Get <IPersonelRepository>();
     #endregion
     InitializeComponent();
 }
コード例 #4
0
 public KurumService(IKurumRepository repo)
 {
     _repo = repo;
 }