Пример #1
0
        public ContentModel(Content source, GroupDescriptor groupDescriptor)
        {
            Source = source;
            GroupDescriptor = groupDescriptor;

            //var badRecepients = Source.RecipientEmails.Where(x => x == null).ToList();
            //foreach (var item in badRecepients)
            //{
            //    Source.RecipientEmails.Remove(item);
            //}

            //var badSenders = Source.SenderEmails.Where(x => x == null).ToList();
            //foreach (var item in badSenders)
            //{
            //    Source.SenderEmails.Remove(item);
            //}

            //var badExtraServices = Source.ExtraServices.Where(x => x == null).ToList();
            //foreach (var item in badExtraServices)
            //{
            //    Source.ExtraServices.Remove(item);
            //}
        }
Пример #2
0
 private void ExpandableItemControl_OnSelectedTransactionChanged(object sender, SelectedTransactionChangedEventArgs e)
 {
     CurrentContent = e.CurrentContent;
     DataContext = CurrentContent;
 }
 public SelectedTransactionChangedEventArgs(Content currentContent)
 {
     CurrentContent = currentContent;
 }
 protected virtual void OnSelectedTransactionChanged(Content currentContent)
 {
     if (SelectedTransactionChanged != null)
         SelectedTransactionChanged(this, new SelectedTransactionChangedEventArgs(currentContent));
 }