public void LoadSampleData(Channel channel) { SampleItems items = new SampleItems(channel); this.ListBusiness = items.List; this.NotifyPropertyChanged("ListBusiness"); }
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>()); }
private void AddPerson() { SampleItems = SampleItems .Concat(CreatePerson()) .ToArray(); RaisePropertyChanged("SampleItems"); }
public UserOrder() { UserNum = 0; Table = 0; Pepper = -1; Details = ""; Price = 0; SampleItems.Clear(); }
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; }
public virtual async Task LoadDataAsync() { SampleItems.Clear(); var data = await SampleDataService.GetSampleModelDataAsync(); foreach (T item in data) { SampleItems.Add(item); } }
public override async Task LoadDataAsync() { SampleItems.Clear(); var data = await SampleDataService.GetSampleModelDataAsync(); foreach (var item in data) { SampleItems.Add(new SampleOrderWithSymbol(item)); } }
public UserOrder(bool flag) { UserNum = 0; Table = 0; Pepper = -1; Details = ""; Price = 0; SampleItems.Clear(); if (flag) { this.OrderId = id; id++; } }
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(); } }
/// <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); }
private void OnSampleItemUpdated(ModelUpdatedMessageResult <SampleItem> updateResult) { SampleItems.UpdateCollection(updateResult.UpdatedModel, updateResult.UpdateEvent); }