Example #1
0
        private void btnAddNew_Click(object sender, EventArgs e)
        {
            wdDeliverUpdate frmDelivery = new wdDeliverUpdate(true);

            frmDelivery.StartPosition = FormStartPosition.CenterScreen;
            frmDelivery.ShowDialog();
            getDeliList();
        }
Example #2
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            wdDeliverUpdate frmDelivery = new wdDeliverUpdate(false);

            frmDelivery.txtID.Text     = dgDeli.CurrentRow.Cells["deliveryid"].Value.ToString();
            frmDelivery.txtName.Text   = dgDeli.CurrentRow.Cells["deliveryname"].Value.ToString();
            frmDelivery.txtDeAddr.Text = dgDeli.CurrentRow.Cells["address"].Value.ToString();
            frmDelivery.txtDeTell.Text = dgDeli.CurrentRow.Cells["tell"].Value.ToString();

            frmDelivery.StartPosition = FormStartPosition.CenterScreen;
            frmDelivery.ShowDialog();
            getDeliList();
        }