public void ShowSuppliers() { BOListCard cards = mAccountant.AllCards; cards.ActiveCardType = CardType.TypeID.Supplier; mCardPresenter.ShowCards(cards); }
public void ShowEmployees() { BOListCard cards = mAccountant.AllCards; cards.ActiveCardType = CardType.TypeID.Employee; mCardPresenter.ShowCards(cards); }
public FrmSuppliers(ApplicationPresenter ap, BOListCard model) : base(ap) { InitializeComponent(); mModel = model; BindViews(); RegisterEventHandlers(); }
public FrmCardsRegister(ApplicationPresenter ap, BOListCard model) : base(ap) { InitializeComponent(); mModel = model; mViewModel = new BOViewModel(model); BindViews(); RegisterEventHandlers(); ConfigureDataGridView(dgvAll); ConfigureDataGridView(dgvSuppliers); ConfigureDataGridView(dgvEmployees); ConfigureDataGridView(dgvCustomers); }
public void ShowCards(BOListCard model) { if (mApplicationController.CheckAccess(BOType.BOListCard, BOPropertyAttrType.Visible)) { if (IsInvalid(mFrmCards)) { mFrmCards = new FrmCardsRegister(mApplicationController, model); } else { mFrmCards.Model = model; mFrmCards.UpdateView(); } SetCurrentForm(mFrmCards); } }
public FrmCardRegister() { InitializeComponent(); mModel = new BOListCard(AccountantPool.Instance.CurrentAccountant); mModel.Revised += new BOListCard.RevisedHandler(mModel_Revised); }