예제 #1
0
        public override void Refresh()
        {
            if (profesional != null)
            {
                this.appointmentListBindingSource.DataSource = ServiceCalls.RetriveAppointment(null, this.Date, profesional.IdProfesional, ServiceCalls.CurrentHealthInstitution.HealthInstitutionId);
                this.m_cerrarTurnoToolStripMenuItem.Visible  = false;
                this.m_enEsperaToolStripMenuItem.Visible     = false;
                this.m_SetCanceled.Visible = false;
            }
            else
            {
                this.m_atenderToolStripMenuItem.Visible      = false;
                this.appointmentListBindingSource.DataSource = ServiceCalls.RetriveAppointment(null, this.Date);
            }

            gridControl2.RefreshDataSource();
            gridView2.RefreshData();
            this.lblTitle.Text = String.Concat(tittle, " Desde :", Date.ToLongDateString());



            base.Refresh();
        }