Exemple #1
0
        static void Main()
        {
            var app = new Gameboard();

            app.dataStorage = DataStorage.GetInstance();
            Application.Run(new SelectRetangle());

            int[] dimensions = app.dataStorage.Data["Dimensions"];
            app.screenReader = new ScreenReader
            {
                XBoundsStart = dimensions[2],
                YBoundsStart = dimensions[3],
                XBoundsEnd   = dimensions[0],
                YBoundsEnd   = dimensions[1]
            };
            app.screenReader.Screenshot();

            app.Run();
        }
Exemple #2
0
        static void Main()
        {
            var app = new Gameboard();
            app.dataStorage = DataStorage.GetInstance();
            Application.Run(new SelectRetangle());

            int[] dimensions = app.dataStorage.Data["Dimensions"];
            app.screenReader = new ScreenReader
            {
                XBoundsStart = dimensions[2],
                YBoundsStart = dimensions[3],
                XBoundsEnd = dimensions[0],
                YBoundsEnd = dimensions[1]
            };
            app.screenReader.Screenshot();

            app.Run();
        }