Example #1
0
		private void ItemSelectedCommandExecute (SettingsItem parameter)
		{
			Page page = null;

			switch (parameter) {
			case SettingsItem.About:
				page = new AboutPage ();
				break;
			case SettingsItem.ExportData:
				page = new ExportDataPage { BindingContext = new ExportDataViewModel () };
				break;
			case SettingsItem.LockoutScreenConfig:
				page = new LockoutScreenConfigPage { BindingContext = new LockScreenConfigViewModel () };
				break;
			case SettingsItem.ParticipantViewConfig:
				page = new ParticipantViewConfigPage { BindingContext = new ParticipantViewConfigViewModel () };
				break;
			case SettingsItem.SetupBeacons:
				page = new SetupBeaconsPage { BindingContext = new SetupBeaconsViewModel () };
				break;
			}

			App.Navigation.PushAsync (page);

			_isInSettings = true;
		}
Example #2
0
        private void ItemSelectedCommandExecute(SettingsItem parameter)
        {
            Page page = null;

            switch (parameter)
            {
            case SettingsItem.About:
                page = new AboutPage();
                break;

            case SettingsItem.ExportData:
                page = new ExportDataPage {
                    BindingContext = new ExportDataViewModel()
                };
                break;

            case SettingsItem.LockoutScreenConfig:
                page = new LockoutScreenConfigPage {
                    BindingContext = new LockScreenConfigViewModel()
                };
                break;

            case SettingsItem.ParticipantViewConfig:
                page = new ParticipantViewConfigPage {
                    BindingContext = new ParticipantViewConfigViewModel()
                };
                break;

            case SettingsItem.SetupBeacons:
                page = new SetupBeaconsPage {
                    BindingContext = new SetupBeaconsViewModel()
                };
                break;
            }

            App.Navigation.PushAsync(page);

            _isInSettings = true;
        }