public async Task ShowMetadata(string path)
        {
            Metadata meta = await client.Files.GetMetadataAsync(path);

            string FileName = meta.Name;
            string FilePath = meta.PathLower;

            if (meta.IsFile)
            {
                string       ID             = meta.AsFile.Id;
                float        FileSize       = meta.AsFile.Size;
                DateTime     ServerModified = meta.AsFile.ServerModified;
                DateTime     ClientModified = meta.AsFile.ClientModified;
                ItemInfoForm info           = new ItemInfoForm(ID, FileName, FilePath, FileSize, ServerModified, ClientModified);
                info.ShowDialog();
            }

            if (meta.IsFolder)
            {
                string       ID   = meta.AsFolder.Id;
                ItemInfoForm info = new ItemInfoForm(ID, FileName, FilePath);
                info.ShowDialog();
            }
        }
Beispiel #2
0
        private void itemInfoToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            ItemInfoForm form = new ItemInfoForm();

            form.ShowDialog();
        }