コード例 #1
0
ファイル: State.cs プロジェクト: MbProg/TestApolloAndroid
        public  void BtnAnsprechpartnerFragmentClick()
        {

            _tvVK.Text = _stateClass._artikel.VKLast + " " + _stateClass._artikel.Waehrung;
            _tvSK.Text = _stateClass._artikel.SK + " " + _stateClass._artikel.Waehrung;


            // Configure the buttons
            if (MainActivity.User.NetworkStatus == DataAccessLayer.NetworkState.Disconnected)
                ConfigureButtons(false, false, false, false, false);
            else
                ConfigureButtons(false, false, false, false, false);



            ArtikelPreisInfoFragment fragment = new ArtikelPreisInfoFragment(Resource.Layout.FrgArtikelPreisinfo, _mainActivity , this);

            _mainActivity.FragmentManager 
                .BeginTransaction()
                .SetCustomAnimations (Android.Resource.Animator.FadeIn,Android.Resource.Animator.FadeOut)
                .Replace(Resource.Id.frameContent, fragment)
                .AddToBackStack (null)
                .Commit();


        }
コード例 #2
0
ファイル: State.cs プロジェクト: MbProg/TestApolloAndroid
        async public System.Threading.Tasks.Task BtnChartFragmentClickAsync()
        {
            this._staffelPreise  = await _stateClass._artikel.GetArtikelStaffelPreiseAsync(Utilities.GetCurrentLanguage(_mainActivity),MainActivity.User);

            // Configure the buttons
            if (MainActivity.User.NetworkStatus == DataAccessLayer.NetworkState.Disconnected)
                ConfigureButtons(false, false, false, false, false);
            else
                ConfigureButtons(false, false, false, false, false);


            ArtikelPreisInfoFragment fragment = new ArtikelPreisInfoFragment(Resource.Layout.FrgArtikelPreisinfo, _mainActivity , this);

            _mainActivity.FragmentManager 
                .BeginTransaction()
                .SetCustomAnimations (Android.Resource.Animator.FadeIn,Android.Resource.Animator.FadeOut)
                .Replace(Resource.Id.frameContent, fragment)
                .AddToBackStack (null)
                .Commit();

        }
コード例 #3
0
ファイル: State.cs プロジェクト: MbProg/TestApolloAndroid
        public void Restore(MainActivity mainActivity)
        {

            // First refresh the mainActivity
            _mainActivity = mainActivity;


            ArtikelPreisInfoFragment fragment = new ArtikelPreisInfoFragment(Resource.Layout.FrgArtikelPreisinfo, _mainActivity , this);

            _mainActivity.FragmentManager 
                .BeginTransaction()
                .SetCustomAnimations (Android.Resource.Animator.FadeIn,Android.Resource.Animator.FadeOut)
                .Replace(Resource.Id.frameContent, fragment)
                .AddToBackStack (null)
                .Commit();
            
        }