public StateKunde(MainActivity activity) { // The data _mainActivity = activity; _person = BusinessLayer.Kunde.Create(); _fragmentState = new StateFragmentPersonGeneral (activity,this, new PermissionBundle( MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.READ), MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.CREATE), MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.UPDATE), MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.DELETE), MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.DOWN_UPLOAD ) )); _fragmentState.BtnGeneralFragmentClick (); // Set the UI GetControlReferences (); ResetControls (); // _fragmentState.ResetControls (); _txtClassName.Text =_mainActivity.Resources.GetString(Resource.String.Kunden)+ ":"; _list.Adapter = null; }
public override void BtnGeneralFragmentClick() { if (_fragmentState.GetType () == typeof(StateFragmentPersonGeneral)) return; _fragmentState = new StateFragmentPersonGeneral (this._mainActivity, this, new PermissionBundle( MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.READ), MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.CREATE), MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.UPDATE), MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.DELETE), MainActivity.User.HasPermission(BusinessLayer.DAC_Object.Kunde,BusinessLayer.DAC_Permission.DOWN_UPLOAD ) )); _fragmentState.BtnGeneralFragmentClick (); }
public PersonGeneralFragment(int layoutId, MainActivity activity, StateFragmentPersonGeneral stateFragment) { this.layoutId = layoutId; _stateFragment = stateFragment; _activity = activity; }
public void SetStateFragement (StateFragmentPersonGeneral stateFragment) { _stateFragment = stateFragment; }
public PersonGeneralFragment( MainActivity activity, StateFragmentPersonGeneral stateFragment) { this.layoutId = UI.Resource.Layout.FrgPersonGeneral; _stateFragment = stateFragment; _activity = activity; }