Exemplo n.º 1
0
        public App()
        {
            InitializeComponent();

            var imageAnalysis = DependencyService.Get <IImageAnalysis>();
            var app           = new BlackPearlApp(imageAnalysis);
            var mainVm        = new MainViewModel(app);
            var mainPage      = new MainPage();

            mainPage.ViewModel = mainVm;

            MainPage = mainPage;
        }
Exemplo n.º 2
0
 public MainViewModel(BlackPearlApp app)
 {
     _app = app;
 }