Ejemplo n.º 1
0
        private void btnEdit_Click_1(object sender, EventArgs e)
        {
            // gọi api lấy dữ liệu theo mã

            using (EditService edit = new EditService(Convert.ToInt32(txtService.Text)))
            {
                edit.ShowDialog();
            }
            dgvDichVu.DataSource = GetAll();
            BindingData();
        }
Ejemplo n.º 2
0
        private void butEditService_Click(object sender, EventArgs e)
        {
            EditService edit = new EditService();

            edit.id.Text          = dataGridService.CurrentRow.Cells[0].Value.ToString();
            edit.textBname.Text   = dataGridService.CurrentRow.Cells[1].Value.ToString();
            edit.maskedPrize.Text = dataGridService.CurrentRow.Cells[2].Value.ToString();

            this.Hide();
            edit.ShowDialog();
            update();
            this.Show();
        }