示例#1
0
        public PopupView(Service service)
        {
            //init displayed data
            _displayedData = new DisplayedData();
            // no need to check the properties exist because if we are here it's means that UserAccount exist
            var userAccountsProperty = Application.Current.Properties["UserAccounts"] as UserAccounts;

            //store the current service
            _currentService = service;

            //store displayed data
            _displayedData.Services    = userAccountsProperty.UserServices.Select(x => x.Key).ToList(); //get all services that the user get auth
            _displayedData.Reactions   = areasToReactionsList(service.area);                            // get reactions
            _displayedData.Actions     = areasToActionsList(service.area);                              //get actions
            _displayedData.IsItGeneral = true;
            //binding it to the xaml
            BindingContext = _displayedData;
            InitializeComponent();
        }
示例#2
0
 public Schema()
     : base()
 {
     InstanceType = typeof(__LazyLoad__);
     ClassName    = "LazyLoadingPage";
     Properties.ClearExposed();
     Html = Add <__TString__>("Html");
     Html.DefaultValue = "/Kitchensink/LazyLoadingPage.html";
     Html.SetCustomAccessors((_p_) => { return(((__LazyLoad__)_p_).__bf__Html__); }, (_p_, _v_) => { ((__LazyLoad__)_p_).__bf__Html__ = (System.String)_v_; }, false);
     People = Add <__TArray__>("People");
     People.SetCustomGetElementType((arr) => { return(__LaLazyLoad__.DefaultTemplate); });
     People.SetCustomAccessors((_p_) => { return(((__LazyLoad__)_p_).__bf__People__); }, (_p_, _v_) => { ((__LazyLoad__)_p_).__bf__People__ = (__Arr__)_v_; }, false);
     SelectedPersonsName = Add <__TString__>("SelectedPersonsName$");
     SelectedPersonsName.DefaultValue = "";
     SelectedPersonsName.Editable     = true;
     SelectedPersonsName.SetCustomAccessors((_p_) => { return(((__LazyLoad__)_p_).__bf__SelectedPersonsName__); }, (_p_, _v_) => { ((__LazyLoad__)_p_).__bf__SelectedPersonsName__ = (System.String)_v_; }, false);
     DisplayHoverBox = Add <__TBool__>("DisplayHoverBox$");
     DisplayHoverBox.DefaultValue = false;
     DisplayHoverBox.Editable     = true;
     DisplayHoverBox.SetCustomAccessors((_p_) => { return(((__LazyLoad__)_p_).__bf__DisplayHoverBox__); }, (_p_, _v_) => { ((__LazyLoad__)_p_).__bf__DisplayHoverBox__ = (System.Boolean)_v_; }, false);
     DisplayedData = Add <__LDiSchema__>("DisplayedData");
     DisplayedData.SetCustomAccessors((_p_) => { return(((__LazyLoad__)_p_).__bf__DisplayedData__); }, (_p_, _v_) => { ((__LazyLoad__)_p_).__bf__DisplayedData__ = (__LaDisplaye__)_v_; }, false);
 }