예제 #1
0
        public ViewModelLocator()
        {
            FillDefaultSettings();

            SettingsViewModel = new SettingsViewModel(this);
            DrumsViewModel = new DrumsViewModel(this);
        }
예제 #2
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            _drums = ((ViewModelLocator) Application.Current.Resources["viewModelLocator"]).DrumsViewModel;

            InitializePaths();
            Touch.FrameReported += Check;
        }