public AccountDetailsTabView(Account account)
        {
            try
            {
                if (account != null)
                {
                    this.Title = account.Company;
                }
                else
                {
                    this.Title = "New Lead";
                }


                //ToolbarItems.Add(new ToolbarItem
                //{
                //    Icon = "refresh.png",
                //    Name = "refresh"
                //    //Command = viewModelOrder.LoadOrdersCommand
                //});

                viewModelAcct = new AccountDetailsViewModel(account)
                {
                    Navigation = Navigation
                };
                viewModelOrder = new OrdersViewModel(true, account.Id)
                {
                    Navigation = Navigation
                };
                viewModelHistory = new OrdersViewModel(false, account.Id)
                {
                    Navigation = Navigation
                };

                viewAcctDetails = new AccountDetailsView(viewModelAcct, viewModelHistory);
                this.Children.Add(viewAcctDetails);


                viewAcctOrders = new AccountOrdersView(account.Id, viewModelOrder)
                {
                    Title = "Orders"
                };
                this.Children.Add(viewAcctOrders);

                viewAcctHistory = new AccountHistoryView(viewModelHistory)
                {
                    Title = "History"
                };
                this.Children.Add(viewAcctHistory);

                viewAcctMap = new AccountMapView(viewModelAcct);
                this.Children.Add(viewAcctMap);
            }
            catch (Exception exc)
            {
                System.Diagnostics.Debug.WriteLine("EXCEPTION: AccountDetailsTabView.Constructor(): " + exc.Message + "  |  " + exc.StackTrace);
            }
        } //end ctor
      public AccountDetailsTabView(Account account)
      {

          try
          {


              if (account != null)
              {
                  this.Title = account.Company;
              }
              else
              {
                  this.Title = "New Lead";
              }


              //ToolbarItems.Add(new ToolbarItem
              //{
              //    Icon = "refresh.png",
              //    Name = "refresh"
              //    //Command = viewModelOrder.LoadOrdersCommand
              //});

              viewModelAcct = new AccountDetailsViewModel(account) { Navigation = Navigation };
              viewModelOrder = new OrdersViewModel(true, account.Id) { Navigation = Navigation };
              viewModelHistory = new OrdersViewModel(false, account.Id) { Navigation = Navigation };

              viewAcctDetails = new AccountDetailsView(viewModelAcct, viewModelHistory);
              this.Children.Add(viewAcctDetails);


              viewAcctOrders = new AccountOrdersView(account.Id, viewModelOrder) { Title = "Orders" };
              this.Children.Add(viewAcctOrders);

              viewAcctHistory = new AccountHistoryView(viewModelHistory) { Title = "History" };
              this.Children.Add(viewAcctHistory);

              viewAcctMap = new AccountMapView(viewModelAcct);
              this.Children.Add(viewAcctMap);

          }
          catch (Exception exc)
          {
              System.Diagnostics.Debug.WriteLine("EXCEPTION: AccountDetailsTabView.Constructor(): " + exc.Message + "  |  " + exc.StackTrace);
          }

      }  //end ctor