ANRTournament.MainWindow.ExportTablePointsAsTxt C# (CSharp) Метод

ExportTablePointsAsTxt() приватный Метод

private ExportTablePointsAsTxt ( string path ) : bool
path string
Результат bool
        private bool ExportTablePointsAsTxt(string path)
        {
            StringBuilder strBuilder = new StringBuilder();

            strBuilder.AppendLine(string.Format("#;{0};{1};{2};{3};{4};{5};{6};{7};+/-;{8};",
                                                StringTable.MainWindow_Gracz,
                                                StringTable.MainWindow_FrakcjaCorpo,
                                                "CID",
                                                StringTable.MainWindow_FrakcjaRunner,
                                                "RID",
                                                StringTable.MainWindow_LiczbaGier,
                                                StringTable.MainWindow_Punkty,
                                                StringTable.MainWindow_B,
                                                StringTable.MainWindow_WRP));

            foreach (Player player in this.tournament.PointsTable.OrderBy(p => p.Place))
            {
                strBuilder.AppendFormat("{0};", player.Place.ToString());
                strBuilder.AppendFormat("{0} '{1}' {2};", player.Name, player.Alias, player.Surname);
                strBuilder.AppendFormat("{0};", player.RaceCorpo.ToString());
                strBuilder.AppendFormat("{0};", player.CorpoIdentity);
                strBuilder.AppendFormat("{0};", player.RaceRunner.ToString());
                strBuilder.AppendFormat("{0};", player.RunnerIdentity);
                strBuilder.AppendFormat("{0};", player.GamesCount);
                strBuilder.AppendFormat("{0};", player.Points.ToString());
                strBuilder.AppendFormat("{0};", player.Sos.ToString());
                strBuilder.AppendFormat("{0};", player.SmallPointsPlusMinus);
                strBuilder.AppendFormat("{0};", player.GamesWinDrawLoose);
                strBuilder.AppendLine();
            }

            using (StreamWriter outfile = new StreamWriter(path))
            {
                outfile.Write(strBuilder.ToString());
            }

            return true;
        }
MainWindow