コード例 #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
ファイル: WeatherTVC.cs プロジェクト: cyrsis/LearnXamarin
        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
ファイル: WeatherTVC.cs プロジェクト: cyrsis/LearnXamarin
        public WeatherTVC(IntPtr handle) : base(handle)
        {
            data = WeatherFactory.GetWeatherData();

            TableView.RegisterClassForCellReuse(typeof(WeatherCell), CELL_ID);
        }
コード例 #4
0
ファイル: WeatherTVC.cs プロジェクト: cyrsis/LearnXamarin
 public WeatherTVC(IntPtr handle) : base(handle)
 {
     data = WeatherFactory.GetWeatherData();
 }
コード例 #5
0
ファイル: WeatherTVC.cs プロジェクト: cyrsis/LearnXamarin
        public WeatherTVC(IntPtr handle) : base(handle)
        {
            data = WeatherFactory.GetWeatherData();

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