static void Main() { MMirrorManager mm = MMirrorManager.Instance; //incase our downloaded data isnt complete, we just get what we last stored try { dynamic manager = JObject.Parse(File.ReadAllText(@"../../Data/tempArray.json")); stocks[] stock; stock = manager.stock.ToObject <List <stocks> >().ToArray(); List <weatherDay> weather; weather = manager.weather.ToObject <List <weatherDay> >(); mm.setStock(stock); mm.setWeather(weather); } catch (Exception) { stockController si = new stockController(); si.getStockFile(); weatherController wc = new weatherController(MMirrorManager.instance); wc.getWeatherJSON(); } /* Application.EnableVisualStyles(); * Application.SetCompatibleTextRenderingDefault(false); * stockView = new View.stockView(); * edges = 0; * state = 0; * stockView.Visible = true; * stockView.startFadeinTimer(); * Application.Run(stockView); * */ InputPinConfiguration p = new InputPinConfiguration(ConnectorPin.P1Pin07.ToProcessor()); GpioConnection g = new GpioConnection(p); g.PinStatusChanged += g_detected; }