コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }