private void btnThemDV_Click(object sender, EventArgs e) { frmTextDichVu ftdv = new frmTextDichVu(this, "Thêm Dịch Vụ"); ftdv.FormBorderStyle = FormBorderStyle.None; ftdv.ShowDialog(); }
private void btnSuaDV_Click(object sender, EventArgs e) { if (dgv_dsDichVu.SelectedRows.Count == 1) { DichVu_WCFClient dv_wcf = new DichVu_WCFClient(); int id = Convert.ToInt32(dgv_dsDichVu.SelectedRows[0].Cells[1].Value.ToString().Trim()); frmTextDichVu ftdv = new frmTextDichVu(this, "Sửa Dịch Vụ", id); ftdv.FormBorderStyle = FormBorderStyle.None; ftdv.ShowDialog(); } else { MessageBox.Show("Chọn 1 Dịch Vụ Cần Sữa", "", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); return; } }