Esempio n. 1
0
        private BooksTransactionOutMaster GetTransactionOutMasterInterface()
        {
            BooksTransactionOutMaster obj = new BooksTransactionOutMaster();

            obj.TransactionID   = txtTranID.Text;
            obj.TransactionDate = GlobalFunction.GetDateTimeWithoutMiliSecond(dtpTranInDate.Value);
            obj.Remarks         = txtRemarks.Text;
            //book.Subject = txtSubject.Text;
            //book.Author = txtAuthorName.Text;
            //book.Publication = txtPublication.Text;
            //book.EditionNo = Convert.ToInt32(txtEditionNo.Text);
            //book.EditionYear = Convert.ToInt32(txtEditionYear.Text);
            //book.Price = Convert.ToInt32(txtPrice.Text);
            return(obj);
        }
Esempio n. 2
0
        private void cmdSubmit_Click(object sender, EventArgs e)
        {
            Account ac = new Account();

            ac.AccountHolderName = txtName.Text;
            ac.ID          = txtID.Text;
            ac.DateOfBirth = GlobalFunction.GetDateTimeWithoutMiliSecond(dtpDOB.Value);

            AccountHandler acHanlder = new AccountHandler();
            Boolean        result    = acHanlder.AddNewAccount(ac);

            if (result == true)
            {
                MessageBox.Show("New Account created");
            }
            else
            {
                MessageBox.Show("Errror Occurs!");
            }
        }