BSA_Browser.BSABrowser.FormatBytes(long)

Here are the examples of the csharp api class BSA_Browser.BSABrowser.FormatBytes(long) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: BSA_Browser
Source File: BSABrowser.cs
View license
private void lvFiles_RetrieveVirtualItem(object sender, RetrieveVirtualItemEventArgs e)
        {
            if (_files.Count <= e.ItemIndex)
                return;

            var file = _files[e.ItemIndex];
            var lvi = new ListViewItem(Path.Combine(file.Folder, file.FileName));

            lvi.SubItems.Add(this.FormatBytes(file.DisplaySize));
            lvi.Tag = file;

            e.Item = lvi;
        }