RatioMaster_source.RM.loadTorrentFileInfo C# (CSharp) Method

loadTorrentFileInfo() private method

private loadTorrentFileInfo ( string torrentFilePath ) : void
torrentFilePath string
return void
        internal void loadTorrentFileInfo(string torrentFilePath)
        {
            try
            {
                currentTorrentFile = new Torrent(torrentFilePath);
                torrentFile.Text = torrentFilePath;
                trackerAddress.Text = currentTorrentFile.Announce;
                shaHash.Text = ToHexString(currentTorrentFile.InfoHash);

                // text.Text = currentTorrentFile.totalLength.ToString();
                txtTorrentSize.Text = FormatFileSize((currentTorrentFile.totalLength));
            }
            catch (Exception ex)
            {
                AddLogLine(ex.ToString());
            }
        }