Exemple #1
0
        private void ItemAdded_Handler(object sender, ItemAddedEventArgs e)
        {
            CardInfo info = (CardInfo)e.AddedItem;

            _cards.Add(info);
            cardView.AddCardInfo(info);
            FreshStatusBar();

            if (DataBaseConnectionsManager.Current.StandbyConnected)
            {
                CardBll standbybll = new CardBll(AppSettings.CurrentSetting.CurrentStandbyConnect);
                standbybll.UpdateOrInsert(info);
            }

            //foreach (ParkingAdapter pad in ParkingAdapterManager.Instance.ParkAdapters)
            //{
            //    pad.SaveCard(info, ActionType.Add);
            //}
        }