public UsedGoodsListControl(UsedGoodListModel model)
        {
            InitializeComponent();
            _presenter = new UsedGoodListPresenter(this, model);

            gvUsedGood.PopupMenuShowing  += gvUsedGood_PopupMenuShowing;
            gvUsedGood.FocusedRowChanged += gvUsedGood_FocusedRowChanged;

            // init editor control accessibility
            btnNewUsedGood.Enabled = AllowInsert;
            cmsEditData.Enabled    = AllowEdit;
            cmsManageStok.Enabled  = AllowEdit;
            cmsDeleteData.Enabled  = AllowDelete;
            this.Load += UsedGoodsListControl_Load;
        }
        public UsedGoodsListControl(UsedGoodListModel model)
        {
            InitializeComponent();
            _presenter = new UsedGoodListPresenter(this, model);

            gvUsedGood.PopupMenuShowing += gvUsedGood_PopupMenuShowing;
            gvUsedGood.FocusedRowChanged += gvUsedGood_FocusedRowChanged;

            // init editor control accessibility
            btnNewUsedGood.Enabled = AllowInsert;
            cmsEditData.Enabled = AllowEdit;
            cmsManageStok.Enabled = AllowEdit;
            cmsDeleteData.Enabled = AllowDelete;
            this.Load += UsedGoodsListControl_Load;
        }