private void buttonChoose_Click(object sender, EventArgs e) { folderBrowserDialog.SelectedPath = ""; if (folderBrowserDialog.ShowDialog() == DialogResult.OK) { Injector.SetMultimedia(folderBrowserDialog.SelectedPath); textBoxShortName.Text = Injector.MultimediaTitle; labelSize.Text = "Size: " + Useful.GetFileSizeWithUnit(Injector.MultimediaSize); labelId.Text = "Title ID: " + Injector.TitleId; } }
public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendLine("File name: \"" + FileName + "\""); sb.AppendLine("Size: " + Useful.GetFileSizeWithUnit(Size)); sb.AppendLine("Format: " + Format); sb.AppendLine("Duration: " + GetTimeFormat((int)Duration)); sb.AppendLine("Bit rate: " + GetBitrateFormat(Bitrate)); sb.AppendLine("Title: \"" + Title + "\""); for (int i = 0; i < MediaInfo.Length; i++) { sb.AppendLine("Stream " + i + ": ["); sb.AppendLine(MediaInfo[i].ToString()); sb.AppendLine("]"); } return(sb.ToString()); }