I created code in the Form.cs and I added a class, (the whole thing acts as an MVC model, file executes the logic of the file, the other file illustrates it with WinForm changes. Problem is, as oppose to a console applications, I get mistakes that I don't understand why I get them
I get this mistake:
Error 2 Inconsistent accessibility: parameter type 'WindowsFormsApplication1.Pieces[*,*]' is less accessible than method 'WindowsFormsApplication1.ChessBoard.PrintPieces(WindowsFormsApplication1.Pieces[*,*])' D:\Documents and Settings\Dima\My Documents\Visual Studio 2008\Projects\ChessBoardGame\ChessBoardGame\ChessBoard.cs 1135 21 ChessBoardGame
I used one method in my Form class:
public void PrintPieces(Pieces [,] pieces)
{
}
and in the class2 I call it like this
C# Syntax (Toggle Plain Text)
public static void ExecuteAll(int rowStart,int columnStart,int rowEnd,int columnEnd) {
Pieces[,] pieces = ChessBoard();
ChessBoard chessB = new ChessBoard();
chessB.PrintPieces(ChessBoard());
}
Why is it a mistake?
[EDIT]
Oooh, damn. I changed it now. Now the mistake is gone.
Does it mean that I can use the elements of both codes with no problem. I want the Form.cs to present the data on WinForm and the class that I have added to perform the code