Example #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;
        }
Example #2
0
 public MainViewModel(BlackPearlApp app)
 {
     _app = app;
 }