Пример #1
0
        //###########################################CLASS BreakDownBankDeposit EVENTS#####################################################
        //event is raised when the class is loaded
        protected virtual void ClassLoad(object sender, EventArgs e)
        {
            _breakDownDepositInfo = new CommonExchange.BreakdownBankDeposit();

            this.dtpStart.Value = DateTime.Parse(_dateStart);
            this.dtpEnd.Value   = DateTime.Parse(_dateEnd);

            _breakDownDepositInfo.DateStart = this.dtpStart.Value.ToShortDateString() + " 12:00:00 AM";
            _breakDownDepositInfo.DateEnd   = this.dtpEnd.Value.ToShortDateString() + " 11:59:59 PM";
        }//----------------------
        public BreakDownBankDepositUpdate(CommonExchange.SysAccess userInfo, CommonExchange.BreakdownBankDeposit breakDownBanckDepositInfo,
                                          CashieringLogic cashieringManager, String dateStart, String dateEnd)
            : base(userInfo, cashieringManager, dateStart, dateEnd)
        {
            this.InitializeComponent();

            _breakDownDepositInfo     = breakDownBanckDepositInfo;
            _tempBreakDownBankDeposit = (CommonExchange.BreakdownBankDeposit)breakDownBanckDepositInfo.Clone();

            this.FormClosing     += new FormClosingEventHandler(ClassClossing);
            this.btnClose.Click  += new EventHandler(btnCloseClick);
            this.btnUpdate.Click += new EventHandler(btnUpdateClick);
            this.btnDelete.Click += new EventHandler(btnDeleteClick);
        }