Beispiel #1
0
        public DebtListControl(DebtListModel model)
        {
            InitializeComponent();
            _presenter = new DebtListPresenter(this, model);

            gvDebt.PopupMenuShowing  += gvDebt_PopupMenuShowing;
            gvDebt.FocusedRowChanged += gvDebt_FocusedRowChanged;

            // init editor control accessibility
            cmsNewPayment.Enabled  = AllowInsert;
            cmsListPayment.Enabled = AllowEdit;

            this.Load += DebtListControl_Load;
        }
        public DebtListControl(DebtListModel model)
        {
            InitializeComponent();
            _presenter = new DebtListPresenter(this, model);

            gvDebt.PopupMenuShowing += gvDebt_PopupMenuShowing;
            gvDebt.FocusedRowChanged += gvDebt_FocusedRowChanged;

            // init editor control accessibility
            cmsNewPayment.Enabled = AllowInsert;
            cmsListPayment.Enabled = AllowEdit;

            this.Load += DebtListControl_Load;
        }