コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UserControlOpeningAccountEntryList" /> class.
        /// </summary>
        public UserControlOpeningAccountEntryList()
        {
            InitializeComponent();
            lstOpenningAccountEntries = new List <OpeningAccountEntryModel>();

            _openingAccountEntriesPresenter = new OpeningAccountEntriesPresenter(this);
            _accountPresenter = new AccountPresenter(this);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="FrmOpeningAccountEntry"/> class.
        /// </summary>
        public FrmOpeningAccountEntry()
        {
            InitializeComponent();
            _openingAccountEntriesPresenter = new OpeningAccountEntriesPresenter(this);
            _accountPresenter = new AccountPresenter(this);

            // Ẩn các nút thêm, xóa, tìm
            this.VisibleButtonAddNew = false;
            this.VisibleButtonDelete = false;
            this.VisibleButtonFind   = false;
            //bar1.Manager.Items["barButtonPrintItem"].Visibility = BarItemVisibility.Never;
        }