public cGroupInfo() { mTagInfoList = new ObservableCollection <cTagInfo>(); cTagInfo Tag = new cTagInfo(); mTagInfoList.Add(Tag); //add one so user doesn't have to on creation of file }
public cGroupInfo(BinaryReader br) { mTagInfoList = new ObservableCollection <cTagInfo>(); uint hash = br.ReadUInt32(); if (hash != GroupInfo) { MessageBox.Show("Error when reading files, file will attempt to load but will likely fail."); } uint TagInfoCount = br.ReadUInt32(); for (int i = 0; i < TagInfoCount; i++) { cTagInfo Tag = new cTagInfo(br); mTagInfoList.Add(Tag); } }
public void AddNotify(cTagInfo tag) { mTagInfoList.Add(tag); OnPropertyChanged("mTagInfoList"); }