Esempio n. 1
0
 private void SacuvajArtikal(Artikal artikal)
 {
     if (artikal != null && artikal.Validator.IsValid(artikal))
     {
         var a = Mapper.Map(artikal);
         using (var svc = new BackendServiceClient())
         {
             svc.SacuvajArtikalCompleted += (s, e) => OnSendMessage(new MessageSaved());
             svc.SacuvajArtikalAsync(a);
         }
     }
 }
Esempio n. 2
0
 private void ArtikalBindingSourceOnCurrentItemChanged(object sender, EventArgs eventArgs)
 {
     if (m_TrenutniArtikal != null)
     {
         m_TrenutniArtikal.PropertyChanged -= TrenutniArtikalPropertyChanged;
     }
     m_TrenutniArtikal = artikalBindingSource.Current as Artikal;
     if (m_TrenutniArtikal != null)
     {
         m_TrenutniArtikal.PropertyChanged += TrenutniArtikalPropertyChanged;
     }
 }