client/src/Iri.Modernisation.Controls/ViewModel/NavigationBar/ChutierVM.cs
changeset 18 66911d0f0eb6
parent 7 de7ba61f66c7
equal deleted inserted replaced
17:0e4e63f6f567 18:66911d0f0eb6
   127             Commands.ReferencesChutier.Search.Executed += new EventHandler<ExecutedEventArgs>(ChutierSearch_Executed);
   127             Commands.ReferencesChutier.Search.Executed += new EventHandler<ExecutedEventArgs>(ChutierSearch_Executed);
   128             Commands.ReferencesChutier.ClickAnnotation.Executed += new EventHandler<ExecutedEventArgs>(ClickAnnotation_Executed);
   128             Commands.ReferencesChutier.ClickAnnotation.Executed += new EventHandler<ExecutedEventArgs>(ClickAnnotation_Executed);
   129         }
   129         }
   130         void RefChutierAdd_Executed(object sender, ExecutedEventArgs e)
   130         void RefChutierAdd_Executed(object sender, ExecutedEventArgs e)
   131         {
   131         {
   132              if(!_annotations.Contains((PolemicElement)e.Parameter))
   132              if(!Annotations.Contains((PolemicElement)e.Parameter))
   133              {
   133              {
   134                   _annotations.Add((PolemicElement)e.Parameter);
   134                   Annotations.Add((PolemicElement)e.Parameter);
   135              }
   135              }
   136              else
   136              else
   137              {
   137              {
   138                  MessageBox.Show("Element déjà sauvegardé");
   138                  MessageBox.Show("Element déjà sauvegardé");
   139              }
   139              }