private ListViewItem CreateListViewItemForAsset(MOG_Filename asset) { ListViewItem item = null; // Only put the asset in the list if it is actually a library asset if (asset.IsLibrary()) { // Make sure we have something valid in our Filename if (asset.GetAssetLabel().Length > 0) { item = new ListViewItem(asset.GetAssetLabel()); // Get the source imported file MOG_Filename repositoryAssetFilename = MOG_ControllerRepository.GetAssetBlessedVersionPath(asset, asset.GetVersionTimeStamp()); string repositoryFile = MOG_ControllerLibrary.ConstructBlessedFilenameFromAssetName(repositoryAssetFilename); string localFile = MOG_ControllerLibrary.ConstructLocalFilenameFromAssetName(repositoryAssetFilename); string extension = DosUtils.PathGetExtension(localFile); // Populate the item item.SubItems.Add(extension); // Extension item.SubItems.Add(asset.GetAssetClassification()); // Classification item.SubItems.Add(""); // User item.SubItems.Add(""); // Comment item.SubItems.Add(""); // Local TimeStamp item.SubItems.Add(asset.GetVersionTimeStampString("")); // Server Timestamp item.SubItems.Add("New"); // Status item.SubItems.Add(asset.GetAssetFullName()); // Fullname item.SubItems.Add(localFile); // LocalFile item.SubItems.Add(repositoryFile); // RepositoryFile // Update the item UpdateItem(item); } } return(item); }