Exemple #1
0
        public LaporanReturnPembelianPresenter()
        {
            _view     = new LaporanReturnPembelianView();
            _services = new PembelianReturnServices(new PembelianReturnRepository(), new ModelDataAnnotationCheck());

            _view.OnLoadData                += _view_OnLoadData;
            _view.OnTampilkanClick          += _view_OnTampilkanClick;
            _view.OnDeleteClick             += _view_OnDeleteClick;
            _view.OnPrintClick              += _view_OnPrintData;
            _view.OnDetailClick             += _view_OnDetailClick;
            _view.OnDataGridCellDoubleClick += _view_OnDataGridCellDoubleClick;
        }
Exemple #2
0
        public PembelianReturnPresenter()
        {
            _view = new ReturnPembelianView();
            _pembelianServices       = new PembelianServices(new PembelianRepository(), new ModelDataAnnotationCheck());
            _pembelianReturnServices = new PembelianReturnServices(new PembelianReturnRepository(), new ModelDataAnnotationCheck());

            _view.OnLoadView             += _view_OnLoadView;
            _view.OnButtonCariClick      += _view_OnButtonCariClick;
            _view.OnButtonTambahClick    += _view_OnButtonTambahClick;
            _view.OnButtonHapusClick     += _view_OnButtonHapusClick;
            _view.OnButtonSimpanClick    += _view_OnButtonSimpanClick;
            _view.OnButtonBersihkanClick += _view_OnButtonBersihkanClick;
            _view.OnButtonCetakNotaClick += _view_OnButtonCetakNotaClick;
        }