コード例 #1
0
ファイル: MasterEcoSpace.cs プロジェクト: rlefever68/Broobu
        /// <summary>
        /// Creates the master applet container.
        /// </summary>
        /// <returns>AppletContainer.</returns>
        private static AppletContainer CreateMasterAppletContainer()
        {
            var res = new AppletContainer();

            {
                var systemAppletFolder = new SystemAppletFolder();
                {
                    systemAppletFolder.AddPart(new MonitorCloudApplet());
                    systemAppletFolder.AddPart(new ManageCloudApplet());
                    systemAppletFolder.AddPart(new BrowseWebApplet());
                }
                res.AddPart(systemAppletFolder);
            }
            return(res);
        }
コード例 #2
0
        /// <summary>
        /// Gets the applets for user.
        /// </summary>
        /// <returns>AppletContainer.</returns>
        public AppletContainer GetAppletsForUser()
        {
            var res = new AppletContainer();

            try
            {
                res = Client
                      .GetAppletsForUser()
                      .Unzip <AppletContainer>();
            }
            catch (Exception ex)
            {
                _logger.Error(ex.GetCombinedMessages());
            }
            finally
            {
                CloseClient(Client);
            }
            return(res);
        }
コード例 #3
0
 protected override void OnEcoSpaceChanged()
 {
     Applets = EcoSpace.Applets;
 }