Beispiel #1
0
        ///////////////////////////////////////////////////////////////////////////////
        // Methods                                                            //
        ///////////////////////////////////////////////////////////////////////////////
        #region METHODS

        /// <summary>
        /// Checks if the mirametrix tracker is available in the system.
        /// </summary>
        /// <param name="errorMessage">Out. A <see cref="String"/> with an error message.</param>
        /// <returns><strong>True</strong>, if Mirametrix tracker
        /// is available in the system, otherwise <strong>false</strong></returns>
        public static TrackerStatus IsAvailable(out string errorMessage)
        {
            // Check Mirametrix process
            if (!IOHelpers.IsProcessOpen("tracker"))
            {
                if (!IOHelpers.IsApplicationInstalled("Mirametrix"))
                {
                    errorMessage = "Can't find Mirametrix S2 Eye Tracker on this computer. Maybe Mirametrix S2 Eye Tracker is not installed or installation is corrupted." + Environment.NewLine + "Please reinstall Mirametrix S2 Eye Tracker.";
                    return(TrackerStatus.NotAvailable);
                }

                errorMessage = "Warning : Mirametrix S2 Eye tracker does not seem to be connected on this computer. Please connect Mirametrix S2 Eye tracker.";
                return(TrackerStatus.NotAvailable);
            }

            errorMessage = "Mirametrix S2 installed on this computer.";
            return(TrackerStatus.Available);
        }
Beispiel #2
0
        ///////////////////////////////////////////////////////////////////////////////
        // Methods                                                            //
        ///////////////////////////////////////////////////////////////////////////////
        #region METHODS

        /// <summary>
        /// Checks if the Gazepoint tracker is available in the system.
        /// </summary>
        /// <param name="errorMessage">Out. A <see cref="String"/> with an error message.</param>
        /// <returns><strong>True</strong>, if Gazepoint tracker
        /// is available in the system, otherwise <strong>false</strong></returns>
        public static TrackerStatus IsAvailable(out string errorMessage)
        {
            // Check Gazepoint process
            if (!IOHelpers.IsProcessOpen("Gazepoint"))
            {
                if (!IOHelpers.IsApplicationInstalled("Gazepoint"))
                {
                    errorMessage = "Can't find Gazepoint GP3 Eye Tracker on this computer. Maybe Gazepoint GP3 Eye Tracker is not installed or installation is corrupted." + Environment.NewLine + "Please reinstall Gazepoint GP3 Eye Tracker.";
                    return(TrackerStatus.NotAvailable);
                }

                errorMessage = "Warning: Gazepoint GP3 Eye tracker does not seem to be connected on this computer. Please connect Gazepoint GP3 Eye tracker.";
                return(TrackerStatus.Undetermined);
            }

            errorMessage = "Gazepoint GP3 Eye Tracker found on this computer.";
            return(TrackerStatus.Available);
        }