Exemplo n.º 1
0
        public ChannelPage()
        {
            InitializeComponent();

            this.Loaded += ChannelPage_Loaded;

            _channelViewModel = new ChannelListViewModel();

            _channelFactory = new ChannelListFactory();
            _channelFactory.HttpSucessHandler += channelFactory_GetChannelsByListSucceed;
            _channelFactory.HttpFailorTimeOut = http_FailorTimeOut;

            _tagFactory = new TagFactory();
            _tagFactory.HttpSucessHandler += tagFactory_GetTagsSucceed;
            _tagFactory.HttpFailorTimeOut = http_FailorTimeOut;

            channelList.ItemsSource = _channelViewModel;
            channelTagControl.TagChanged += OnTagChanged;
            channelOrderControl.OrderChanged += OnTagChanged;
            channelSelectedControl.SetSource(channelTagControl);
        }
Exemplo n.º 2
0
        public ChannelPage()
        {
            this.InitializeComponent();

            this.Loaded += load_Handler;
            snapChannelListView.LayoutUpdated += load_Handler;
            this.NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Enabled;

            _channelViewModel = new ChannelListViewModel();
            _channelViewModel.Groups = new ObservableCollection<ChannelListGroup>();
            this.DefaultViewModel["Items"] = _channelViewModel.Groups;

            _channelFactory = new ChannelListFactory();
            _channelFactory.HttpSucessHandler += channelFactory_GetChannelsByListSucceed;
            _channelFactory.HttpFailorTimeOut = http_FailorTimeOut;

            _tagFactory = new TagFactory();
            _tagFactory.HttpSucessHandler += tagFactory_GetTagsSucceed;
            _tagFactory.HttpFailorTimeOut = http_FailorTimeOut;
            tagBar.TagChanged += OnTagChanged;
        }