public RenderComponent(AtlasFrame frame) { Frames = new List <AtlasFrame>() { frame }; }
private void showAtlas(FileInfo file, FileRecord rec) { if (file.Extension != ".atlas") { return; } rec.FileIcon = new BitmapImage(new Uri(CONST_STRING.MaterialIcon, UriKind.Relative)); Dictionary <string, AtlasFrame> atlasList = AtlasTools.Instance.GetAtlasFrameList(file.FullName); foreach (KeyValuePair <string, AtlasFrame> kv in atlasList) { AtlasFrame atlas = kv.Value; atlas.ShowText = atlas.frameName; atlas.DragText = atlas.frameName; atlas.FileFullName = file.FullName; rec.SubRecords.Add(atlas); } }