public void DichVu_Load(int _DichVuID) { DichVuID = _DichVuID; DichVuClient = new DichVuSVCClient(); DichVuClient.DichVu_GetItemCompleted += new EventHandler<DichVu_GetItemCompletedEventArgs>(DichVuClient_DichVu_GetItemCompleted); DichVuClient.DichVu_GetItemAsync(DichVuID); }
private void cbxDichVu_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangedEventArgs e) { DichVuClient = new DichVuSVCClient(); DichVuClient.DichVu_GetItemCompleted += new EventHandler<DichVu_GetItemCompletedEventArgs>(DichVuClient_DichVu_GetItemCompleted); DichVuClient.DichVu_GetItemAsync((int)cbxDichVu.SelectedValue); }