Exemple #1
0
        private void AnnotationsBtnUpdate()
        {
            /* Détermine si des annotations existent déjà et mets à jour le bouton annotations*/
            List <Annotation> list;

            list = annotationProvider.GetByEvenementId(_id);
            if (list.Count > 0)
            {
                string nbAnnotations = list.Count.ToString();
                if (list.Count > 1)
                {
                    BtnCommentaires.Text = nbAnnotations + " annotations";
                }
                else
                {
                    BtnCommentaires.Text = nbAnnotations + " annotation";
                }

                /* Bouton clignotant */
                Timer.Enabled = true;
            }
            else
            {
                Timer.Enabled = false;
            }
        }
        public void RefreshData()
        {
            List <Annotation> list;

            list = annotationProvider.GetByEvenementId(_id);

            CreateTable(list, idRetour);
        }