Пример #1
0
        public void OnSelectContext()
        {
            switch (Settings.UserType)
            {
            case 0:
                ViewModel.Title = GetString(Resource.String.t_consumer);
                _locationHelper.ClearWhistlers();
                SwitchContent(new MapHostFragment(this.MapView, Resource.Layout.Whistle, Resource.Menu.menu_switch)
                {
                    ViewModel = this.ViewModel
                });
                break;

            case 1:
                ViewModel.Title = GetString(Resource.String.t_provider);
                _locationHelper.ClearWhistlers();
                SwitchContent(new MapHostFragment(this.MapView, Resource.Layout.Whistle, Resource.Menu.menu_switch)
                {
                    ViewModel = this.ViewModel
                });
                break;

            case 2:
                ViewModel.Title = GetString(Resource.String.t_tracking);
                SwitchContent(new TrackingFragment()
                {
                    ViewModel = this.ViewModel
                });
                break;

            default:
                break;
            }
        }