public LaporanPengeluaranPresenter() { _view = new LaporanPengeluaranView(); _services = new PengeluaranServices(new PengeluaranRepository(), new ModelDataAnnotationCheck()); _view.OnLoadData += _view_OnLoadData; _view.OnTampilkanClick += _view_OnTampilkanClick; _view.OnDeleteClick += _view_OnDeleteClick; _view.OnPrintClick += _view_OnPrintData; }
public PengeluaranPresenter() { _view = new PengeluaranView(); _services = new PengeluaranServices(new PengeluaranRepository(), new ModelDataAnnotationCheck()); _view.OnLoadData += _view_LoadData; _view.OnButtonTambahClick += _view_OnCreateData; _view.OnButtonUbahClick += _view_OnUpdateData; _view.OnButtonHapusClick += _view_OnDeleteData; _view.OnButtonRefreshClick += _view_OnRefreshData; _view.OnDataGridCellDoubleClick += OnDataGrid_CellDoubleClick; }