public static Uri MakeEditAccountView(AccountsViewModel account)
 {
     string accountID = "-1";
     if (account != null)
     {
         accountID = account.CTA_ID.ToString();
     }
     string uri = string.Format("/Views/EditAccount.xaml?{0}={1}",
     App.QueryParamAccountID, accountID);
     return new Uri(uri, UriKind.Relative);
 }
        // Constructor
        public MainPage()
        {
            //new AccountsViewModel().deleteAccounts();
            InitializeComponent();

            // Set the data context of the listbox control to the sample data
            //DataContext = App.ViewModel;

            // App.SampleData(); //Populates data for testing
            //this.Loaded += new RoutedEventHandler(MainPage_Loaded);

            IList<TB_CONTA> accounts = new AccountsViewModel().GetAccounts();
            foreach (TB_CONTA account in accounts)
            {
                makePivot(account);
            }
        }