Пример #1
0
 public void CbSelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (e.AddedItems.Count > 0)
     {
         if (e.AddedItems[0] is RegistryShare RS)
         {
             ActualRecord = _registryServices.GetShareById(RS.id_titolo);
         }
         else if (e.AddedItems[0] is RegistryFirm RF)
         {
             ActualRecord.id_azienda = RF.id_azienda;
         }
         else if (e.AddedItems[0] is RegistryShareType RST)
         {
             ActualRecord.id_tipo_titolo = RST.id_tipo_titolo;
         }
     }
 }