Esempio n. 1
0
        private void LoadProfile(string profile, bool isString)
        {
            lock (m_clientSync)
            {
                if (m_client == null)
                {
                    throw new Exception("client not initialized");
                }

                if (isString)
                {
                    if (!m_client.LoadProfileString(profile))
                    {
                        throw new Exception(String.Format("failed to load profile string '{0}'", profile));
                    }
                }
                else
                {
                    if (!m_client.LoadProfileFile(profile))
                    {
                        throw new Exception(String.Format("failed to load profile file '{0}'", profile));
                    }
                }
            }
        }