コード例 #1
0
        private void btnupdate_Click(object sender, EventArgs e)
        {
            ClsSqlServer objupdate = new ClsSqlServer();

            objupdate.UpdateCustomer(txtapartiment.Text, txtfname.Text, txtlname.Text, cmbgender.Text, txtphone.Text, cmbpayment.Text, dTPicker1.Value);
            MessageBox.Show("Data Updated Successfully");

            txtapartiment.Text = "";
            txtfname.Text      = "";
            txtlname.Text      = "";
            cmbgender.Text     = "";
            txtphone.Text      = "";
            cmbpayment.Text    = "";
            dTPicker1.Value    = DateTime.Today;
        }