Esempio n. 1
0
        public void LaunchInstructorToolFromSubTab(
            MmndToolLinks.LinkTypeEnum linkTypeEnum)
        {
            //Launch Tool From SubTab
            Logger.LogMethodEntry("LaunchTool", "LaunchInstructorToolFromSubTab",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Fetch the Tool link Name from Memory
            MmndToolLinks subtabLinkName = MmndToolLinks.Get(linkTypeEnum);

            //Launch Tool From SubTab
            new ViewPage().PreviewInstructorTodaysViewLink(subtabLinkName.Name);
            Logger.LogMethodExit("LaunchTool", "LaunchInstructorToolFromSubTab",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
Esempio n. 2
0
        public void PasteCBOMRequest(
            MmndToolLinks.LinkTypeEnum linkTypeEnum)
        {
            //Paste CBOM Request
            Logger.LogMethodEntry("LaunchTool", "PasteCBOMRequest",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Fetch the Tool link Name from Memory
            MmndToolLinks subtabLinkName = MmndToolLinks.Get(linkTypeEnum);

            //Paste CBOM Request
            new ManagePage().PasteTheCBOMRequest(subtabLinkName.Name);
            Logger.LogMethodExit("LaunchTool", "PasteCBOMRequest",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
Esempio n. 3
0
        public void NavigateInsideTheSubtabLink(
            MmndToolLinks.LinkTypeEnum linkTypeEnum)
        {
            //Navigate Inside Sub Tab
            Logger.LogMethodEntry("LaunchTool", "NavigateInsideTheSubtabLink",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Fetch the Tool link Name from Memory
            MmndToolLinks subtabLinkName = MmndToolLinks.Get(linkTypeEnum);

            //Navigate to Sub Tab
            new ViewPage().NavigateInsideSubTabLink(subtabLinkName.Name);
            Logger.LogMethodExit("LaunchTool", "NavigateInsideTheSubtabLink",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
Esempio n. 4
0
        public void LaunchStudentToolFromSubtabLink(
            MmndToolLinks.LinkTypeEnum linkTypeEnum)
        {
            //Launch Student Tool From SubTab
            Logger.LogMethodEntry("LaunchTool", "LaunchStudentToolFromSubtabLink",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Fetch the Tool link Name from Memory
            MmndToolLinks subtabLinkName = MmndToolLinks.Get(linkTypeEnum);

            //Launch Student Tool From SubTab
            new ViewPage().PreviewStudentCourseCalendarLink(subtabLinkName.Name);
            Logger.LogMethodExit("LaunchTool", "LaunchStudentToolFromSubtabLink",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
        /// <summary>
        /// Store Subtab Link Name In Memory
        /// </summary>
        /// <param name="subtabLinkName">This is Tool/Asset launch Subtab Link Name</param>
        private void StoreSubtabLinkNameInMemory(string subtabLinkName)
        {
            //Store Subtab Link Name In Memory
            logger.LogMethodEntry("PostIndexMixedPage", "StoreSubtabLinkNameInMemory",
                                  base.IsTakeScreenShotDuringEntryExit);
            MmndToolLinks link = new MmndToolLinks
            {
                Name      = subtabLinkName,
                LinkType  = MmndToolLinks.LinkTypeEnum.MMND,
                IsCreated = true
            };

            link.StoreLinkInMemory();
            logger.LogMethodExit("PostIndexMixedPage", "StoreSubtabLinkNameInMemory",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
        /// <summary>
        /// Get the Subtab Link name For Tool/Asset Launch
        /// </summary>
        /// <returns>Subtab Link name For Tool/Asset Launch</returns>
        public String GetSubTabLinkName()
        {
            //Get the Subtab Link name
            logger.LogMethodEntry("PostIndexMixedPage", "GetSubTabLinkName",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Initialize the Variables
            string        subTabName   = string.Empty;
            MmndToolLinks toolLinkName = null;

            try
            {
                try
                {
                    //Get the Link Name
                    toolLinkName = MmndToolLinks.Get(MmndToolLinks.LinkTypeEnum.MMND);
                    if (toolLinkName == null)
                    {
                        //Create a new GUID
                        subTabName = Guid.NewGuid().ToString();
                    }
                    else
                    {
                        subTabName = toolLinkName.Name;
                    }
                }
                catch
                {
                    //Create a new GUID
                    subTabName = Guid.NewGuid().ToString();
                }
            }
            catch (Exception e)
            {
                ExceptionHandler.HandleException(e);
            }
            logger.LogMethodExit("PostIndexMixedPage", "GetSubTabLinkName",
                                 base.IsTakeScreenShotDuringEntryExit);
            return(subTabName);
        }