Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                c = new CustomerList();

                customer cs = new customer();
                cs.Name           = textBox1.Text;
                cs.TCKN           = textBox5.Text;
                cs.SubscriberType = comboBox2.Text;
                cs.PlateNo        = textBox3.Text;
                cs.CarModel       = textBox4.Text;
                cs.Tel            = textBox6.Text;
                cs.CarBrand       = comboBox1.Text;

                int s = cs.edit_user(cs, label1.Text);
                if (s != 0)
                {
                    MessageBox.Show("Succesfully edited");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("There is error" + ex.Message);
            }
        }