//F5:针对PGN文件进行转换与解析 private void PGNConvent(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; Duration duration = new Duration(); duration.Start(); PGNReader reader = new PGNReader(); reader.Filename = Path.GetFullPath(Path.Combine(_demoFile, PGNFile)); reader.AddEvents(_records); reader.Parse(); string s = _records[0].ToString(); this._recordListView.Items.Clear(); foreach (var item in _records) { this._recordListView.Add(item); } duration.Stop(); this._label.Text = string.Format("[Count: {0} record]. [Duration time: {1}]. [{2} Time/Record.]", _records.Count, duration.DurationValue, duration.DurationValue / _records.Count); this.Cursor = Cursors.Default; }