Пример #1
0
 void Sessions_ItemRemoved(IDualNotifyingCollection <Session> sender, ItemRemovedEventArgs <Session> eventArgs)
 {
     SerializableSessions.Remove(SerializableSessions.First(x => x.Model == eventArgs.Item));
     Validate();
     OnPropertyChanged("CanAddVCSession");
     OnPropertyChanged("CanAddWITSession");
 }
Пример #2
0
 void Sessions_ItemAdded(IDualNotifyingCollection <Session> sender, ItemAddedEventArgs <Session> eventArgs)
 {
     SerializableSessions.Add(new SerializableSession(eventArgs.Item, Sessions, SerializableSources, this));
     eventArgs.Item.Filters.FilterPair.ItemAdded   += new ItemAddedEventHandler <FilterPair>(filterPair_ItemAdded);
     eventArgs.Item.Filters.FilterPair.ItemRemoved += new ItemRemovedEventHandler <FilterPair>(filterPair_ItemRemoved);
     Validate();
     OnPropertyChanged("CanAddVCSession");
     OnPropertyChanged("CanAddWITSession");
 }
Пример #3
0
 void FilterPair_ItemAdded(IDualNotifyingCollection <FilterPair> sender, ItemAddedEventArgs <FilterPair> eventArgs)
 {
     m_filterPairViewModels.Add(new FilterPairViewModel(eventArgs.Item, Model, m_configuration));
 }
Пример #4
0
 void FilterPair_ItemRemoved(IDualNotifyingCollection <FilterPair> sender, ItemRemovedEventArgs <FilterPair> eventArgs)
 {
     m_filterPairViewModels.RemoveAt(eventArgs.Index);
 }
Пример #5
0
 void FilterPair_ItemReplaced(IDualNotifyingCollection <FilterPair> sender, ItemReplacedEventArgs <FilterPair> eventArgs)
 {
     throw new NotImplementedException();
 }
Пример #6
0
 void MigrationSources_ItemReplaced(IDualNotifyingCollection <MigrationSource> sender, ItemReplacedEventArgs <MigrationSource> eventArgs)
 {
     eventArgs.NewItem.PropertyChanged += new UndoablePropertyChangedEventHandler(configurationSource_PropertyChanged);
 }
Пример #7
0
 void MigrationSources_ItemAdded(IDualNotifyingCollection <MigrationSource> sender, ItemAddedEventArgs <MigrationSource> eventArgs)
 {
     eventArgs.Item.PropertyChanged += new UndoablePropertyChangedEventHandler(configurationSource_PropertyChanged);
     SerializableSources.Add(new SerializableSource(eventArgs.Item, MigrationSources, Sessions, this));
 }
Пример #8
0
 void MigrationSources_ItemRemoved(IDualNotifyingCollection <MigrationSource> sender, ItemRemovedEventArgs <MigrationSource> eventArgs)
 {
     SerializableSources.Remove(SerializableSources.First(x => x.Model == eventArgs.Item));
 }
Пример #9
0
 void filterPair_ItemAdded(IDualNotifyingCollection <FilterPair> sender, ItemAddedEventArgs <FilterPair> eventArgs)
 {
     Validate();
 }