public LiveChannelPage()
        {
            this.InitializeComponent();

            _listFactory = new LiveListFactory();
            _listFactory.HttpSucessHandler += listFactory_HttpSucessed;
            _listFactory.HttpFailorTimeOut += http_FailorTimeOut;

            _sportsFactory = new LiveCenterSportsFactory();
            _sportsFactory.HttpSucessHandler += liveCenter_HttpSucessed;
            _sportsFactory.HttpFailorTimeOut += http_FailorTimeOut;

            _gamesFactory = new LiveCenterGameFacotry();
            _gamesFactory.HttpSucessHandler += liveCenter_HttpSucessed;
            _gamesFactory.HttpFailorTimeOut += http_FailorTimeOut;

            _viewModel        = new LiveListViewModel();
            _viewModel.Groups = new ObservableCollection <LiveListGroup>();
            this.DefaultViewModel["LiveChannels"] = _viewModel.Groups;

            _liveCenterViewModel = new ObservableCollection <LiveListGroup>();
            this.DefaultViewModel["LiveCenterSource"] = _liveCenterViewModel;

            _colCount = ScreenUtils.CreateColNum(119, 260);
            var gridHeight = 129 * _colCount + 30;

            satelliteGridView.MaxHeight  = gridHeight;
            localtvGridView.MaxHeight    = gridHeight;
            livecenterGridView.MaxHeight = gridHeight + 60;

            RequestDatas();
        }
        public LiveChannelPage()
        {
            this.InitializeComponent();

            _listFactory = new LiveListFactory();
            _listFactory.HttpSucessHandler += listFactory_HttpSucessed;
            _listFactory.HttpFailorTimeOut += http_FailorTimeOut;

            _sportsFactory = new LiveCenterSportsFactory();
            _sportsFactory.HttpSucessHandler += liveCenter_HttpSucessed;
            _sportsFactory.HttpFailorTimeOut += http_FailorTimeOut;

            _gamesFactory = new LiveCenterGameFacotry();
            _gamesFactory.HttpSucessHandler += liveCenter_HttpSucessed;
            _gamesFactory.HttpFailorTimeOut += http_FailorTimeOut;

            _viewModel = new LiveListViewModel();
            _viewModel.Groups = new ObservableCollection<LiveListGroup>();
            this.DefaultViewModel["LiveChannels"] = _viewModel.Groups;

            _liveCenterViewModel = new ObservableCollection<LiveListGroup>();
            this.DefaultViewModel["LiveCenterSource"] = _liveCenterViewModel;

            _colCount = ScreenUtils.CreateColNum(119, 260);
            var gridHeight = 129 * _colCount + 30;
            satelliteGridView.MaxHeight = gridHeight;
            localtvGridView.MaxHeight = gridHeight;
            livecenterGridView.MaxHeight = gridHeight + 60;

            RequestDatas();
        }