You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

39 lines
1.5 KiB

using CDPShared;
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace CircleViewer.Dialogs
{
public partial class FilePropertiesDlg : Form
{
private CDPWorker _cdp;
private CircleAPIHelper _apiHelper;
private string _fileName;
public FilePropertiesDlg(CDPWorker cdp, string fileName)
{
_cdp = cdp;
_fileName = fileName;
InitializeComponent();
}
private void FilePropertiesDlg_Load(object sender, EventArgs e)
{
YellowFile yf = new YellowFile(_fileName);
List<TwoStrings> l2s = new List<TwoStrings>();
l2s.Add(new TwoStrings("Circle Id", yf.CircleId));
l2s.Add(new TwoStrings("Topic Id", yf.TopicId));
l2s.Add(new TwoStrings("File Id", yf.FileId));
l2s.Add(new TwoStrings("Owner Id", yf.OwnerId));
l2s.Add(new TwoStrings("Cloud Id", yf.CloudId));
l2s.Add(new TwoStrings("Decryption Id", yf.DecryptionId));
l2s.Add(new TwoStrings("Revision No", Convert.ToString(yf.RevisionNo)));
l2s.Add(new TwoStrings("Encrypted Block Size", Convert.ToString(yf.EncryptedBlockSize)));
l2s.Add(new TwoStrings("File Access Time", yf.FileAccessTime.ToString()));
l2s.Add(new TwoStrings("File Modification Time", yf.FileModificationTime.ToString()));
l2s.Add(new TwoStrings("File Status Time", yf.FileStatusTime.ToString()));
dgMeta.DataSource = l2s;
}
}
}