コード例 #1
0
ファイル: PrintInvoice.cs プロジェクト: Samurayi/WaiterApp2
        public List <string> Print(string fileName)
        {
            this.fileName = fileName + " invoice";
            SaveAndLoad.DeleteText(this.fileName);
            itemList = ItemPrice.OrderWiev(fileName).ToList();


            return(itemList);
        }
コード例 #2
0
        protected override void OnResume()
        {
            base.OnResume();
            var createAdd  = FindViewById <Button>(Resource.Id.createAdd);
            var itemList   = FindViewById <ListView>(Resource.Id.orderView);
            var closeOrder = FindViewById <Button>(Resource.Id.closeOrder);
            var viewLast   = FindViewById <Button>(Resource.Id.viewLast);

            string[] order = ItemPrice.OrderWiev(ItemPrice.tableFile + tNumber);

            itemList.Adapter = new ArrayAdapter <string>(this, Android.Resource.Layout.SimpleListItem1, order);
            if (itemList.Adapter.Count == 0)
            {
                createAdd.Text       = "Create new order";
                closeOrder.Clickable = false;
            }
            else
            {
                createAdd.Text       = "Add item";
                closeOrder.Clickable = true;
            }
        }