public FrmSelectTransfer(DataTable dataTable, PresenterDetailsInUserDepartment tempPresent, ICtrlDetailDepartament ctrlDetail, int userId) { _userId = userId; InitializeComponent(); _dataUsers = dataTable; LoadCMBdata(); _tempPresent = tempPresent; _ctrlDetail = ctrlDetail; // _dbAddDetails = new DbAddDetails(); cmListDep.SelectedIndexChanged += CmListDep_SelectedIndexChanged; }
public PresenterDetailsInUserDepartment(ICtrlDetailDepartament detailsInDep, IDbDetailsOnDep dbDetails, IMessageService messageService, int userId, string userDep) { _userId = userId; _userDep = userDep; _ctrlDetail = detailsInDep; _dbDetails = dbDetails; _messageService = messageService; _ctrlDetail.BtnTakeAwayDetails += CtrlDetail_BtnTakeAwayDetails; _ctrlDetail.BtnRowsClear += CtrlDetail_BtnRowsClear; Load_form(); _ctrlDetail.BtnResetFilter += CtrlDetail_BtnResetFilter; _ctrlDetail.CmSortSelectedIndex += CtrlDetail_CmSortSelectedIndex; _ctrlDetail.CmTypeSelectedIndex += CtrlDetail_CmTypeSelectedIndex; _ctrlDetail.TxtModelChanged += CtrlDetail_TxtModelChanged; _ctrlDetail.CmSortTextChanged += _ctrlDetail_CmSortTextChanged; _ctrlDetail.CmTypeTextChanged += _ctrlDetail_CmTypeTextChanged; _ctrlDetail.BtnTransfer += _ctrlDetail_BtnTransfer; }