public ManualTransactionListControl(ManualTransactionListModel model)
        {
            InitializeComponent();
            _presenter = new ManualTransactionListPresenter(this, model);

            gvManualTransaction.FocusedRowChanged += gvManualTransaction_FocusedRowChanged;
            gvManualTransaction.PopupMenuShowing += gvManualTransaction_PopupMenuShowing;

            // init editor control accessibility
            btnNewTransaction.Enabled = AllowInsert;
            cmsEditData.Enabled = AllowEdit;
            cmsDeleteData.Enabled = AllowDelete;

            this.Load += ManualTransactionListControl_Load;
        }
Exemplo n.º 2
0
        public ManualTransactionListControl(ManualTransactionListModel model)
        {
            InitializeComponent();
            _presenter = new ManualTransactionListPresenter(this, model);

            gvManualTransaction.FocusedRowChanged += gvManualTransaction_FocusedRowChanged;
            gvManualTransaction.PopupMenuShowing  += gvManualTransaction_PopupMenuShowing;

            // init editor control accessibility
            btnNewTransaction.Enabled = AllowInsert;
            cmsEditData.Enabled       = AllowEdit;
            cmsDeleteData.Enabled     = AllowDelete;

            this.Load += ManualTransactionListControl_Load;
        }