private void SelecionaAgendamentos() { if (dataPicker.SelectedDate != null) { var proxy = new ERPMedicoServiceClient(); proxy.GetAgendamentosMedicoDataCompleted += (s, ex) => { agendamentoDataGrid.ItemsSource = ex.Result; }; proxy.GetAgendamentosMedicoDataAsync(1, (DateTime) dataPicker.SelectedDate); } }
private void SelecionaAgendamentos() { if (dataPicker.SelectedDate != null) { var proxy = new ERPMedicoServiceClient(); proxy.GetAgendamentosMedicoDataCompleted += (s, ex) => { agendamentoDataGrid.ItemsSource = ex.Result; }; proxy.GetAgendamentosMedicoDataAsync(1, (DateTime)dataPicker.SelectedDate); } }