Exemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            CaroContext caroContext = new CaroContext();

            DataSource = new DataSource(caroContext);

            Application.Run(new MainForm());
        }
Exemplo n.º 2
0
 public DataSource(CaroContext caroContext)
 {
     ChessBoards      = new List <ChessBoard>();
     this.caroContext = caroContext;
     //this.ChessBoards.Add(new ChessBoard {
     //    Id = 1,
     //    Moves = new List<string>
     //    {
     //        "A1", "B1","A2","B2","A3","B3","A4","B4","A5"
     //    }
     //});
     //this.ChessBoards.Add(new ChessBoard(2));
     //this.ChessBoards.Add(new ChessBoard(3));
     //this.ChessBoards.Add(new ChessBoard(4));
     //this.ChessBoards.Add(new ChessBoard(5));
     //this.ChessBoards.Add(new ChessBoard(6));
 }