Example #1
0
        public static bool Dispose()
        {
            bool retval = true;

            try
            {
                if (Environments != null)
                {
                    Environments.Dispose();
                    Environments = null;
                }
            }
            catch (Exception ex)
            {
                retval = false;
            }
            return(retval);
        }
Example #2
0
        public static bool Init(string EnvFile)
        {
            bool retval = true;

            try
            {
                if (Environments != null)
                {
                    Environments.Dispose();
                    Environments = null;
                }
                XmlDocument doc = new XmlDocument();
                doc.Load(EnvFile);
                Environments = new QEnvironments(doc);
                projectsPath = doc.SelectSingleNode("//projects/@path").Value;
            }
            catch (Exception ex)
            {
                retval = false;
            }
            return(retval);
        }