Пример #1
0
        /// <summary>
        /// Validates that a module is open
        /// </summary>
        /// <returns>
        /// The <see cref="bool"/>.
        /// </returns>
        public bool IsOnlineModuleOpened()
        {
            bool    result           = true;
            Element moduleTabControl = new GUI.ApplicationArea.MainView.ApplicationElements().TabControlOnlineParameterization;

            if (moduleTabControl == null)
            {
                result = false;
            }

            return(result);
        }
Пример #2
0
        /// <summary>
        /// Validates that a module is already open or not (brings module to foreground if it is already open)
        /// </summary>
        /// <returns>
        /// The <see cref="bool"/>.
        /// </returns>
        public bool IsOfflineModuleAlreadyOpened()
        {
            bool    result           = false;
            Element moduleTabControl = new GUI.ApplicationArea.MainView.ApplicationElements().TabControlOfflineParameterization;

            if (moduleTabControl != null)
            {
                moduleTabControl.EnsureVisible();
                result = true;
            }

            return(result);
        }