Пример #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);
 }
Пример #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();
        }
Пример #3
0
        public WeatherTVC(IntPtr handle) : base(handle)
        {
            data = WeatherFactory.GetWeatherData();

            TableView.RegisterClassForCellReuse(typeof(WeatherCell), CELL_ID);
        }
Пример #4
0
 public WeatherTVC(IntPtr handle) : base(handle)
 {
     data = WeatherFactory.GetWeatherData();
 }
Пример #5
0
        public WeatherTVC(IntPtr handle) : base(handle)
        {
            data = WeatherFactory.GetWeatherData();

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