Exemplo n.º 1
0
        private void btnAddFinAlt_Click(object sender, EventArgs e)
        {
            AddFinanceAllotmentfrm frm = new AddFinanceAllotmentfrm("ADD", _vehicleBookingId);

            frm.ShowDialog();
            txtFinanceAllotmentId.Text = frm.Controls["lblFinanceAllotmentId"].Text;
            if (txtFinanceAllotmentId.Text != "" && txtFinanceAllotmentId.Text != "lblFinanceAllotmentId")
            {
                EnableEditForFinanceAllotment();
            }
        }
Exemplo n.º 2
0
        private void btnEditFinAlt_Click(object sender, EventArgs e)
        {
            //FinanceAllotmentId
            var _financeAllotmentId = 0;

            if (txtFinanceAllotmentId.Text != "" && txtFinanceAllotmentId.Text != "lblFinanceAllotmentId")
            {
                _financeAllotmentId = Convert.ToInt32(txtFinanceAllotmentId.Text);
            }
            AddFinanceAllotmentfrm frm = new AddFinanceAllotmentfrm("EDIT", _vehicleBookingId, _financeAllotmentId);

            frm.ShowDialog();
            txtFinanceAllotmentId.Text = frm.Controls["lblFinanceAllotmentId"].Text;
            if (txtFinanceAllotmentId.Text != "")
            {
                EnableEditForFinanceAllotment();
            }
        }