Exemplo n.º 1
0
        public static void LoadReceiptNavigation()
        {
            NavigationItem currentItem = null;
            NavigationItem receipts;
            string path = string.Empty;

            if (ReceiptNavigation == null)
            {
                receipts = new NavigationItem { ReceiptText = "Receipts", Image = "Images/Receipts.ico" };
                
                ReceiptNavigation = new ReceiptNavigation();

                ReceiptNavigation.Receipts = new NavigationItem { ReceiptText = "Insyston Operations Launchpad" };
                ReceiptNavigation.Receipts.Children = new ObservableCollection<NavigationItem>();
                ReceiptNavigation.Receipts.Children.Add(new NavigationItem { ReceiptText = "Receipts" });
                ReceiptNavigation.Receipts.Children.First().Children = new ObservableCollection<NavigationItem>();
                ReceiptNavigation.Receipts.Children.First().Children.Add(receipts);

                receipts.Children = new ObservableCollection<NavigationItem>();
                receipts.Children.Add(new NavigationItem { ReceiptText = ReceiptBatchStatus.Created.ToString(), BatchStatus = (int)ReceiptBatchStatus.Created, Image = "Images/Loading.ico" });
                _ReceiptLoaded = receipts.Children.FirstOrDefault();
                receipts.Children.Add(new NavigationItem { ReceiptText = ReceiptBatchStatus.Pending.ToString(), BatchStatus = (int)ReceiptBatchStatus.Pending, Image = "Images/Pending.ico" });
                receipts.Children.Add(new NavigationItem { ReceiptText = ReceiptBatchStatus.Posted.ToString(), BatchStatus = (int)ReceiptBatchStatus.Posted, Image = "Images/Posted.ico" });                
            }
            else
            {
                receipts = ReceiptNavigation.Receipts.Children.First().Children.First();
            }

            BatchTypeFunctions.GetReceiptNavigationList(receipts);
        }
Exemplo n.º 2
0
 public ReceiptViewModel(ReceiptNavigation receiptNavigation, ILogger log)
 {
     Prepare(receiptNavigation);
 }