/// <summary>
        /// Path Info
        /// </summary>
        /// <param name="productName">The default product name is taken from the version of Studio that is identified from the current app domain</param>
        public PathInfo(string productName)
        {
            if (string.IsNullOrEmpty(productName))
            {
                var studio        = new Studio();
                var studioVersion = studio.GetStudioVersion();
                if (studioVersion != null)
                {
                    productName = studioVersion.PublicVersion.Substring(4);
                }
            }

            if (string.IsNullOrEmpty(productName))
            {
                throw new Exception("The product name cannot be null; unable to locate the version of studio from the current app domain");
            }

            _productName = productName;
        }
Esempio n. 2
0
 public void ViewAttached()
 {
     lbVersion.Text = "V" + Studio.GetStudioVersion();
 }