public TagModelList() { Help = new LocalizedText("TagModelListHelp"); Items = new DocList <TagModel>(); FileName = new DocObj <string>(); Version = new TagVersionEnum(); Version.Help = new LocalizedText("TagModelListVersionHelp"); Version.IsEnabled = false; HasSelection = new DocObj <bool>(); multiVersionAdapter.LinkedToHook = false; multiVersionAdapter.RegardListTransaction = true; multiVersionAdapter.PropertyProvider = TagModel.VersionItemProvider; multiVersionAdapter.PropertyProviderSelected = TagModel.SelectedVersionItemProvider; multiVersionAdapter.Items = Items; multiVersionAdapter.DocEnum = Version; Version.Hook = VersionEnumHook; selectionAdapterHook.LinkedToHook = true; selectionAdapterHook.RegardListTransaction = true; selectionAdapterHook.PropertyChangedEvent += OnSelectionChangedHook; selectionAdapterHook.PropertyProvider = TagModel.SelectionItemProvider; selectionAdapterHook.Items = Items; selectionAdapter.LinkedToHook = false; selectionAdapter.RegardListTransaction = true; selectionAdapter.PropertyChangedEvent += OnSelectionChanged; selectionAdapter.PropertyProvider = TagModel.SelectionItemProvider; selectionAdapter.Items = Items; }
public TagModel() { File = new DocObj <string>(); IsSelected = new DocObj <bool>(true); IsPlaying = new DocObj <bool>(false); Version = new TagVersionEnum(); Bitrate = new DocObj <int>(-1); Items = new DocList <TagModelItem>(); createableFrames.Model = this; Items.CollectionChanged += new NotifyCollectionChangedEventHandler(OnItemsChanged); }