Exemplo n.º 1
0
 public UserOrder()
 {
     UserNum = 0;
     Table   = 0;
     Pepper  = -1;
     Details = "";
     Price   = 0;
     SampleItems.Clear();
 }
Exemplo n.º 2
0
        public virtual async Task LoadDataAsync()
        {
            SampleItems.Clear();

            var data = await SampleDataService.GetSampleModelDataAsync();

            foreach (T item in data)
            {
                SampleItems.Add(item);
            }
        }
Exemplo n.º 3
0
        public override async Task LoadDataAsync()
        {
            SampleItems.Clear();

            var data = await SampleDataService.GetSampleModelDataAsync();

            foreach (var item in data)
            {
                SampleItems.Add(new SampleOrderWithSymbol(item));
            }
        }
Exemplo n.º 4
0
 public UserOrder(bool flag)
 {
     UserNum = 0;
     Table   = 0;
     Pepper  = -1;
     Details = "";
     Price   = 0;
     SampleItems.Clear();
     if (flag)
     {
         this.OrderId = id;
         id++;
     }
 }