コード例 #1
0
ファイル: CompanyList.ascx.cs プロジェクト: Hennz/StageBitz
        /// <summary>
        /// Initializes the welcome tool tips.
        /// </summary>
        /// <param name="freeTrialOption">The free trial option.</param>
        public void InitializeWelcomeToolTips(WelcomeMessage.FreeTrialOption freeTrialOption)
        {
            switch (freeTrialOption)
            {
            case WelcomeMessage.FreeTrialOption.None:
                return;

            case WelcomeMessage.FreeTrialOption.ExpectingInvitation:
                helptipWaitingForInvitation.Visible = true;
                break;

            case WelcomeMessage.FreeTrialOption.CreateNewProject:
                helpTipCompanyList.Visible   = true;
                lblTooltipInventoryInfo.Text = "- The Company Inventory should you decide to explore it later.";
                break;

            case WelcomeMessage.FreeTrialOption.CreateInventory:
                helpTipCompanyList.Visible   = true;
                lblTooltipInventoryInfo.Text =
                    "- The Company Inventory, where you can add Items and their details. For really quick Inventory creation," +
                    " why not try our mobile app available in the <a target='_blank' href='" +
                    Utils.GetSystemValue("MobileAppITuneUrl") + "'>App Store</a> and on <a target='_blank' href='" +
                    Utils.GetSystemValue("MobileAppGooglePlayUrl") + "'>Google Play</a>?";
                break;

            case WelcomeMessage.FreeTrialOption.CreateProjectAndInventory:
                helpTipCompanyList.Visible   = true;
                lblTooltipInventoryInfo.Text =
                    "- The Company Inventory, where you can add Items and their details. For really quick Inventory creation," +
                    " why not try our mobile app available in the <a target='_blank' href='" +
                    Utils.GetSystemValue("MobileAppITuneUrl") + "'>App Store</a> and on <a target='_blank' href='" +
                    Utils.GetSystemValue("MobileAppGooglePlayUrl") + "'>Google Play</a>?";
                break;
            }
        }
コード例 #2
0
        /// <summary>
        /// Initializes the welcome tool tips.
        /// </summary>
        /// <param name="freeTrialOption">The free trial option.</param>
        public void InitializeWelcomeToolTips(WelcomeMessage.FreeTrialOption freeTrialOption)
        {
            switch (freeTrialOption)
            {
            case WelcomeMessage.FreeTrialOption.None:
            case WelcomeMessage.FreeTrialOption.ExpectingInvitation:
            case WelcomeMessage.FreeTrialOption.CreateInventory:
                return;

            case WelcomeMessage.FreeTrialOption.CreateNewProject:
            case WelcomeMessage.FreeTrialOption.CreateProjectAndInventory:
                helptipProjectLink.Visible = true;
                break;
            }
        }