public WeatherTVC(IntPtr handle) : base(handle) { data = WeatherFactory.GetWeatherData(); grouping = (from w in data orderby w.City[0] ascending group w by w.City[0] into g select g).ToArray(); indices = (from s in data orderby s.City ascending group s by s.City[0] into g select g.Key.ToString()).ToArray(); //TableView.RegisterClassForCellReuse(typeof(WeatherCell), CELL_ID); }
string[] indices; // array to show in index //List<Weather> data; public WeatherTVC(IntPtr handle) : base(handle) { var data = WeatherFactory.GetWeatherData(); grouping = (from w in data orderby w.City[0] ascending group w by w.City[0] into g select g).ToArray(); indices = (from s in data orderby s.City ascending group s by s.City [0] into g select g.Key.ToString()).ToArray(); }
public WeatherTVC(IntPtr handle) : base(handle) { data = WeatherFactory.GetWeatherData(); TableView.RegisterClassForCellReuse(typeof(WeatherCell), CELL_ID); }
public WeatherTVC(IntPtr handle) : base(handle) { data = WeatherFactory.GetWeatherData(); }
public WeatherTVC(IntPtr handle) : base(handle) { data = WeatherFactory.GetWeatherData(); TableView.ContentInset = new UIEdgeInsets(this.TopLayoutGuide.Length, 0, 0, 0); }