Exemplo n.º 1
0
 public WizardCustomerPage(CustomerModel customer)
 {
     try
     {
         InitializeComponent();
         _viewModel = new CustomerViewModel();
         _viewModel.InitPages(customer);
         BindingContext   = _viewModel;
         _primaryColor    = (Color)Application.Current.Resources["Primary"];
         _unselectedColor = (Color)Application.Current.Resources["UnselectedColor"];
     }
     catch (System.Exception e)
     {
         Debug.WriteLine(e);
         throw;
     }
 }
Exemplo n.º 2
0
 public WizardCustomerPage()
 {
     try
     {
         InitializeComponent();
         _viewModel = ServiceLocator.Current.GetInstance <CustomerViewModel>();
         _viewModel.InitPages();
         BindingContext   = _viewModel;
         _primaryColor    = (Color)Application.Current.Resources["Primary"];
         _unselectedColor = (Color)Application.Current.Resources["UnselectedColor"];
     }
     catch (System.Exception e)
     {
         Debug.WriteLine(e);
         throw;
     }
 }