public PesquisaMedicoForm(MedicoForm medicoForm)
        {
            InitializeComponent();
            _medicoForm = medicoForm;
            List <Doctor> doctors  = _doctorDapperRepository.GetAll().ToList();
            List <object> formated = new List <object>();

            foreach (var doctor in doctors)
            {
                formated.Add(new
                {
                    CRM           = doctor.Crm,
                    Nome          = doctor.Name,
                    Especialidade = doctor.Specialty
                });
            }

            Grid.DataSource = formated;
        }
Beispiel #2
0
        private void MedicoTile_Click(object sender, EventArgs e)
        {
            MedicoForm medico = new MedicoForm();

            medico.ShowDialog();
        }