Beispiel #1
0
        private void InitUser()
        {
            systemUser = new PrivateUserData(this, sysUserId, null);
            userList   = new DEList <PrivateUserData>(this, "tw_users", "User list");

            PublishItem(new DEConfigItemPublicAction("refreshUsers")
            {
                DisplayName = "user-refresh"
            });
        }         // proc InitUser
Beispiel #2
0
        /// <summary></summary>
        /// <param name="sp"></param>
        /// <param name="name"></param>
        public PpsApplication(IServiceProvider sp, string name)
            : base(sp, name)
        {
            initializationProgress = new SimpleConfigItemProperty <string>(this, "ppsn_init_progress", "Initialization", "Misc", "Show the current state of the initialization of the node.", null, "Pending");

            this.databaseLibrary = new PpsDatabaseLibrary(this);
            this.objectsLibrary  = new PpsObjectsLibrary(this);
            this.reportProvider  = new PpsServerReportProvider(this);

            // register shortcut for text
            LuaType.RegisterTypeAlias("text", typeof(PpsFormattedStringValue));
            LuaType.RegisterTypeAlias("blob", typeof(byte[]));
            LuaType.RegisterTypeAlias("geography", typeof(Microsoft.SqlServer.Types.SqlGeography));

            PublishItem(clientApplicationInfos = new DEList <PpsClientApplicationInfo>(this, "tw_client_infos", "Client applications"));

            InitUser();
        }         // ctor
 public DefaultListModel(DEList deList)
 {
     this.deList = deList;
     Initialise();
 }