Exemplo n.º 1
0
        public StateArtikel(MainActivity activity)
        {
            // The data
            _mainActivity = activity;
            _artikel = BusinessLayer.Artikel.Create();
            _fragmentState =  new StateFragmentArtikelGeneral (activity, this);
            _fragmentState.BtnGeneralFragmentClick ();

            // Set the UI
            GetControlReferences ();
            ResetControls ();
            //          _fragmentState.ResetControls ();
            _txtClassName.Text =_mainActivity.Resources.GetString(Resource.String.Artikeln)+ ":";
            _list.Adapter = null;
        }
Exemplo n.º 2
0
        public override void BtnGeneralFragmentClick()
        {
            if (_fragmentState.GetType () == typeof(StateFragmentArtikelGeneral))
                return;


            _fragmentState = new StateFragmentArtikelGeneral (this._mainActivity, this);
            _fragmentState.BtnGeneralFragmentClick ();

        }
        public override void BtnGeneralFragmentClick(ref CustomUITableViewController viewController)
        {
            // If we are in the fragment, don't load it again
            if (_fragmentState.GetType () == typeof(StateFragmentArtikelGeneral))
                return;

            _viewController = viewController;
            _fragmentState = new StateFragmentArtikelGeneral (_vcDetails,  _viewController, Application._user, this);
            _fragmentState.BtnGeneralFragmentClick ();

        }