Example #1
0
        public void ShowSuppliers()
        {
            BOListCard cards = mAccountant.AllCards;

            cards.ActiveCardType = CardType.TypeID.Supplier;
            mCardPresenter.ShowCards(cards);
        }
Example #2
0
        public void ShowEmployees()
        {
            BOListCard cards = mAccountant.AllCards;

            cards.ActiveCardType = CardType.TypeID.Employee;
            mCardPresenter.ShowCards(cards);
        }
Example #3
0
        public FrmSuppliers(ApplicationPresenter ap, BOListCard model)
            : base(ap)
        {
            InitializeComponent();

            mModel = model;

            BindViews();
            RegisterEventHandlers();
        }
Example #4
0
        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);
        }
Example #5
0
 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);
     }
 }
Example #6
0
 public FrmCardRegister()
 {
     InitializeComponent();
     mModel          = new BOListCard(AccountantPool.Instance.CurrentAccountant);
     mModel.Revised += new BOListCard.RevisedHandler(mModel_Revised);
 }