Пример #1
0
        public PurchaseReturnListControl(PurchaseReturnListModel model)
        {
            InitializeComponent();
            _presenter = new PurchaseReturnListPresenter(this, model);

            gvPurchasing.PopupMenuShowing  += gvPurchasing_PopupMenuShowing;
            gvPurchasing.FocusedRowChanged += gvPurchasing_FocusedRowChanged;

            // init editor control accessibility
            cmsViewDetail.Enabled   = AllowEdit;
            cmsDeleteReturn.Enabled = AllowEdit;
            cmsPrintReturn.Enabled  = AllowEdit;

            txtDateFilterFrom.EditValue = txtDateFilterTo.EditValue = DateTime.Today;

            this.Load += PurchaseReturnListControl_Load;
        }
        public PurchaseReturnListControl(PurchaseReturnListModel model)
        {
            InitializeComponent();
            _presenter = new PurchaseReturnListPresenter(this, model);

            gvPurchasing.PopupMenuShowing += gvPurchasing_PopupMenuShowing;
            gvPurchasing.FocusedRowChanged += gvPurchasing_FocusedRowChanged;

            // init editor control accessibility
            btnListReturn.Enabled = AllowEdit;
            cmsAddReturn.Enabled = AllowInsert;
            cmsEditReturn.Enabled = AllowEdit;
            cmsDeleteReturn.Enabled = AllowEdit;
            cmsPrintReturn.Enabled = AllowEdit;

            txtDateFilterFrom.EditValue = txtDateFilterTo.EditValue = DateTime.Today;

            this.Load += PurchaseReturnListControl_Load;
        }