Ejemplo n.º 1
0
        async public System.Threading.Tasks.Task BtnAnsprechpartnerFragmentClickAsync()
        {

            _Bestand = await BusinessLayer.Artikel.GetArtikelBestandAsync(_stateClass._artikel.ID, _stateClass._artikel.Version,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);



            ArtikelVerfuegbarkeitFragment fragment = new ArtikelVerfuegbarkeitFragment(Resource.Layout.FrgArtikelVerfuegbarkeit, _mainActivity , this);

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

        }
Ejemplo n.º 2
0
        public void Restore(MainActivity mainActivity)
        {

            // First refresh the mainActivity
            _mainActivity = mainActivity;


            ArtikelVerfuegbarkeitFragment fragment = new ArtikelVerfuegbarkeitFragment(Resource.Layout.FrgArtikelVerfuegbarkeit, _mainActivity , this);

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

            ConfigureButtons(false, false, false, false, false);

        }