void UpdateAssetDescription() { var asset = _core.SelectedObject; if (asset == null) { txtInfo.Text = "No asset selected"; return; } var sb = new StringBuilder(); sb.AppendLine($"{asset.Filename}"); if (File.Exists(asset.Filename)) { var fileInfo = new FileInfo(asset.Filename); sb.AppendLine($"File Size: {fileInfo.Length}"); sb.AppendLine($"XLD: {asset.Parent.Name}"); sb.AppendLine($"Layer: {asset.Parent.Format}"); sb.AppendLine($"Conf Width: {asset.EffectiveWidth}"); sb.AppendLine($"Conf Height: {asset.EffectiveHeight}"); } sb.AppendLine(); _activeViewer?.GetAssetDescription(sb); txtInfo.Text = sb.ToString(); }
void UpdateAssetDescription() { var asset = _core.SelectedObject; if (asset == null) { txtInfo.Text = "No asset selected"; return; } var filename = _core.GetRawPath(asset); var sb = new StringBuilder(); sb.AppendLine($"{filename}"); if (File.Exists(filename)) { var fileInfo = new FileInfo(filename); sb.AppendLine($"File Size: {fileInfo.Length}"); sb.AppendLine($"Path: {asset.File.Filename}"); sb.AppendLine($"Loader: {asset.File.Loader}"); sb.AppendLine($"Conf Width: {asset.Width}"); sb.AppendLine($"Conf Height: {asset.Height}"); } sb.AppendLine(); _activeViewer?.GetAssetDescription(sb); txtInfo.Text = sb.ToString(); }