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(); }