예제 #1
0
        /// <summary>
        /// Return the version of Skyline that is running.
        /// </summary>
        /// <returns></returns>
        public SkylineTool.Version GetVersion()
        {
            var version = new SkylineTool.Version();

            try
            {
                version.Major    = Install.MajorVersion;
                version.Minor    = Install.MinorVersion;
                version.Build    = Install.Build;
                version.Revision = Install.Revision;
            }
            // ReSharper disable once EmptyGeneralCatchClause
            catch
            {
            }
            return(version);
        }
예제 #2
0
 /// <summary>
 /// Return the version of Skyline that is running.
 /// </summary>
 /// <returns></returns>
 public SkylineTool.Version GetVersion()
 {
     var version = new SkylineTool.Version();
     try
     {
         version.Major = Install.MajorVersion;
         version.Minor = Install.MinorVersion;
         version.Build = Install.Build;
         version.Revision = Install.Revision;
     }
     // ReSharper disable once EmptyGeneralCatchClause
     catch
     {
     }
     return version;
 }