예제 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            if (checkDataInput() == true)
            {
                eTitle title = new eTitle();
                title.TitleName    = txtTitleName.Text;
                title.RentalPeriod = Convert.ToInt32(txtRentalPeriod.Text);
                title.RentalCharge = Convert.ToDecimal(txtRentalCharge.Text);
                title.TitleStatus  = txtTitleStatus.Text;
                title.Quantity     = Convert.ToInt32(txtQuantity.Text);

                titlebll.insertTitle(title);
                LoadDataGridView(dgvTitle, titlebll.getAllTitle());
            }
        }
예제 #2
0
        public frmTitle()
        {
            InitializeComponent();
            listtitle = new List <eTitle>();
            titlebll  = new TitleBLL();

            listtitle = titlebll.getAllTitle();
            LoadDataGridView(dgvTitle, listtitle);
            //MessageBox.Show(StatusLoginTitle.ToString());
        }