Ejemplo n.º 1
0
        public void FillData()
        {
            WMOLocalNames.Clear();

            WowDatabase database = Engine.Instance.WowDatabase;

            for (uint i = 0; i < database.WmoCount; ++i)
            {
                WMOLocalNames.Add(new Entry()
                {
                    Name = database.GetWMOFileName(i, true), Id = (int)i
                });
            }

            wmoLocalNamesView = CollectionViewSource.GetDefaultView(WMOLocalNames);

            m2NamesView = CollectionViewSource.GetDefaultView(M2Names);
        }
Ejemplo n.º 2
0
        public void FillADTData(FileADT fileadt)
        {
            M2Names.Clear();
            for (uint i = 0; i < fileadt.M2Count; ++i)
            {
                M2Names.Add(new Entry()
                {
                    Name = fileadt.GetM2FileName(i, true), Id = (int)i
                });
            }

            WMOLocalNames.Clear();
            for (uint i = 0; i < fileadt.WMOCount; ++i)
            {
                WMOLocalNames.Add(new Entry()
                {
                    Name = fileadt.GetWMOFileName(i, true), Id = (int)i
                });
            }

            m2NamesView       = CollectionViewSource.GetDefaultView(M2Names);
            wmoLocalNamesView = CollectionViewSource.GetDefaultView(WMOLocalNames);
        }