コード例 #1
0
        public void LoadSampleData(Channel channel)
        {
            SampleItems items = new SampleItems(channel);

            this.ListBusiness = items.List;
            this.NotifyPropertyChanged("ListBusiness");
        }
コード例 #2
0
 public SampleDataPlaylistPage()
 {
     PlaylistViewSource       = new SampleDataDACPElementViewSource <SampleDataDACPElement>();
     PlaylistViewSource.Items = new List <SampleDataDACPElement>();
     PlaylistViewSource.Items.AddRange(SamplePlaylists.Cast <SampleDataDACPElement>().Take(3));
     PlaylistViewSource.Items.AddRange(SampleItems.Cast <SampleDataDACPElement>());
 }
コード例 #3
0
        private void AddPerson()
        {
            SampleItems = SampleItems
                          .Concat(CreatePerson())
                          .ToArray();

            RaisePropertyChanged("SampleItems");
        }
コード例 #4
0
 public UserOrder()
 {
     UserNum = 0;
     Table   = 0;
     Pepper  = -1;
     Details = "";
     Price   = 0;
     SampleItems.Clear();
 }
コード例 #5
0
        public ListViewSelectedItems()
        {
            this.InitializeComponent();
            SampleItems = Enumerable.Range(0, 15).Concat(Enumerable.Range(0, 5)).ToArray();
            var sampleItemsExtended = SampleItems.Concat(Enumerable.Range(15, 5)).ToArray();

            SelectorListView.ItemsSource        = sampleItemsExtended;
            SetSelectedItemListView.ItemsSource = sampleItemsExtended;
            SelectedItemsListView.ItemsSource   = SampleItems;
        }
コード例 #6
0
        public virtual async Task LoadDataAsync()
        {
            SampleItems.Clear();

            var data = await SampleDataService.GetSampleModelDataAsync();

            foreach (T item in data)
            {
                SampleItems.Add(item);
            }
        }
コード例 #7
0
        public override async Task LoadDataAsync()
        {
            SampleItems.Clear();

            var data = await SampleDataService.GetSampleModelDataAsync();

            foreach (var item in data)
            {
                SampleItems.Add(new SampleOrderWithSymbol(item));
            }
        }
コード例 #8
0
 public UserOrder(bool flag)
 {
     UserNum = 0;
     Table   = 0;
     Pepper  = -1;
     Details = "";
     Price   = 0;
     SampleItems.Clear();
     if (flag)
     {
         this.OrderId = id;
         id++;
     }
 }
コード例 #9
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     if (e.NavigationMode == NavigationMode.New && e.Parameter != null && e.Parameter is SampleItem)
     {
         this.sampleItem     = e.Parameter as SampleItem;
         this.pageTitle.Text = this.sampleItem.TitleGroup;
         this.DataContext    = this.sampleItem;
         SampleItems sampleItems = new SampleItems(Feature.DataModel.Channel.cinema);
         this.listBusiness.ItemsSource   = sampleItems.List;
         this.sampleHall.List[0].Option  = "添加日程";
         this.listBusiness.SelectedIndex = 0;
         this.listHall.ItemsSource       = this.listHallData;
         this.listViewSeat.ItemsSource   = this.listSeat;
         this.getSeat();
     }
 }
コード例 #10
0
        /// <summary>
        /// 在此页将要在 Frame 中显示时进行调用。
        /// </summary>
        /// <param name="e">描述如何访问此页的事件数据。
        /// 此参数通常用于配置页。</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            this.navigationHelper.OnNavigatedTo(e);
            if (e.Parameter != null && e.Parameter is SampleItem && e.NavigationMode == NavigationMode.New)
            {
                this.sampleItem.Update(e.Parameter as SampleItem);

                TimeSpan period = TimeSpan.FromMilliseconds(10);

                Windows.System.Threading.ThreadPoolTimer.CreateTimer(async(source) =>
                {
                    await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, new Windows.UI.Core.DispatchedHandler(() =>
                    {
                        this.scrollViewer.ChangeView(null, 0.0, null);
                    }));
                }, period);

                SampleItems sampleItems = new SampleItems(Feature.DataModel.Channel.cinema);
                this.listBusiness.ItemsSource = sampleItems.List;
            }
        }
 public BusinessObject(int p1)
 {
     Items = new SampleItems(p1);
 }
コード例 #12
0
 private void OnSampleItemUpdated(ModelUpdatedMessageResult <SampleItem> updateResult)
 {
     SampleItems.UpdateCollection(updateResult.UpdatedModel, updateResult.UpdateEvent);
 }