Exemple #1
0
        bool LoadProfileInternal()
        {
            List <string> options = new List <string>();

            options.Add("was loaded");
            options.Add("failed to load");
            string response = _tc.ReadWaitForStrings("Intellicode.Instrument.Profile.load(" + this.Profile.ProfileName + ")", options, 5000);

            if (!response.Contains("was loaded"))
            {
                LogEvent("Failed to load profile: " + this.Profile.ProfileName);
                GenerateError("Failed to load profile: " + this.Profile.ProfileName);
                return(false);
            }

            LogEvent("Successfully loaded profile: " + this.Profile.ProfileName);
            return(true);
        }