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

1 year ago
  1. using CDPShared;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Windows.Forms;
  5. namespace CircleViewer.Dialogs
  6. {
  7. public partial class FilePropertiesDlg : Form
  8. {
  9. private CDPWorker _cdp;
  10. private CircleAPIHelper _apiHelper;
  11. private string _fileName;
  12. public FilePropertiesDlg(CDPWorker cdp, string fileName)
  13. {
  14. _cdp = cdp;
  15. _fileName = fileName;
  16. InitializeComponent();
  17. }
  18. private void FilePropertiesDlg_Load(object sender, EventArgs e)
  19. {
  20. YellowFile yf = new YellowFile(_fileName);
  21. List<TwoStrings> l2s = new List<TwoStrings>();
  22. l2s.Add(new TwoStrings("Circle Id", yf.CircleId));
  23. l2s.Add(new TwoStrings("Topic Id", yf.TopicId));
  24. l2s.Add(new TwoStrings("File Id", yf.FileId));
  25. l2s.Add(new TwoStrings("Owner Id", yf.OwnerId));
  26. l2s.Add(new TwoStrings("Cloud Id", yf.CloudId));
  27. l2s.Add(new TwoStrings("Decryption Id", yf.DecryptionId));
  28. l2s.Add(new TwoStrings("Revision No", Convert.ToString(yf.RevisionNo)));
  29. l2s.Add(new TwoStrings("Encrypted Block Size", Convert.ToString(yf.EncryptedBlockSize)));
  30. l2s.Add(new TwoStrings("File Access Time", yf.FileAccessTime.ToString()));
  31. l2s.Add(new TwoStrings("File Modification Time", yf.FileModificationTime.ToString()));
  32. l2s.Add(new TwoStrings("File Status Time", yf.FileStatusTime.ToString()));
  33. dgMeta.DataSource = l2s;
  34. }
  35. }
  36. }