Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        public WeatherTVC(IntPtr handle) : base(handle)
        {
            data = WeatherFactory.GetWeatherData();

            TableView.RegisterClassForCellReuse(typeof(WeatherCell), CELL_ID);
        }
Ejemplo n.º 4
0
 public WeatherTVC(IntPtr handle) : base(handle)
 {
     data = WeatherFactory.GetWeatherData();
 }
Ejemplo n.º 5
0
        public WeatherTVC(IntPtr handle) : base(handle)
        {
            data = WeatherFactory.GetWeatherData();

            TableView.ContentInset = new UIEdgeInsets(this.TopLayoutGuide.Length, 0, 0, 0);
        }