以上是例图,而我做出来的东西怎么这么拥挤?
private void openFileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Graphics paper = pictureBoxBoard.CreateGraphics();
            DrawBoard(paper);
            openFileDialog1.Filter = "CSV Files|*.CSV|ALL Files|*.*";
            openFileDialog1.ShowDialog();
            string[] csvArray;
            string line;
            //use try/catch stucture
            try
            {
                StreamReader Readfile = File.OpenText(openFileDialog1.FileName);
                while (Readfile.Peek() != -1)
                {
                    int row, column;
                    string type;
                    string player;
                    line = Readfile.ReadLine();
                    csvArray = line.Split(',');
                    row = Convert.ToInt32(csvArray[0]);
                    column = Convert.ToInt32(csvArray[1]);
                    type = Convert.ToString(csvArray[2]);
                    player = Convert.ToString(csvArray[3]);
                    
                    //show the content in the listBox
                    listBoxOutput.Items.Add(row + "   " + column + "   " + type.PadRight(6) + "   " + player);                    if (csvArray[2] == "rook")
                    {
                        DrawRook(paper, (column - 1) * PieceSize, (row - 1) * PieceSize, GetSeatColor(player));
                    }
                    else if (csvArray[2] == "pawn")
                    {
                        DrawPawn(paper, (column - 1) * PieceSize, (row - 1) * PieceSize, GetSeatColor(player));
                    }
                    else if (csvArray[2] == "rook")
                    {
                        DrawRook(paper, (column - 1) * PieceSize, (row - 1) * PieceSize, GetSeatColor(player));
                    }
                    else if (csvArray[2] == "knight")
                    {
                        DrawKnight(paper, (column - 1) * PieceSize, (row - 1) * PieceSize, GetSeatColor(player));
                    }
                    else if (csvArray[2] == "bishop")
                    {
                        DrawBishop(paper, (column - 1) * PieceSize, (row - 1) * PieceSize, GetSeatColor(player));
                    }
                    else if (csvArray[2] == "queen")
                    {
                        DrawQueen(paper, (column - 1) * PieceSize, (row - 1) * PieceSize, GetSeatColor(player));
                    }
                    else if (csvArray[2] == "king")
                    {
                        DrawKing(paper, (column - 1) * PieceSize, (row - 1) * PieceSize, GetSeatColor(player));
                    }                    
                    
   
                }                Readfile.Close();
                }
            
            
            catch (Exception)
            {
            }
        }
        
        private Color GetSeatColor(string typeofplayer)
        {            if (typeofplayer == "player1")
            {
                return Color.White;
            }
            if (typeofplayer == "player2")
            {
                return Color.Black;
            }
            else                throw new Exception("invaild type of player");
        }
    }
}