public UserGunSetupView()
 {
     this.InitializeComponent();
     // UserSetupViewModel.Setup = new UserGunSetup();
     //  gungroupssource.Source = UserSetupViewModel.Groups;
     vm = new UserGunSetupViewModel(1, new mySpotterLibrary.Helpers.DatabaseHelper(App.SQLITE_PLATFORM,App.DB_PATH));
     this.DataContext = vm;
     
 }
Exemplo n.º 2
0
 public MainPageViewModel(DatabaseHelper db)
 {
     dbHelper = db;
     favoritesetup = new UserGunSetupViewModel(1,db);
 }