Exemple #1
0
        string getSWVersion()
        {
            int  version = -1;
            bool iOK     = Int32.TryParse(SwApp.RevisionNumber().Split('.')[0], out version);

            if (iOK)
            {
                version += 1992; // MAGIC NUMBER
            }

            //if (version.StartsWith("17"))
            //    return "2009";
            //else if (version.StartsWith("18"))
            //    return "2010";
            //else if (version.StartsWith("19"))
            //    return "2011";
            //else
            //    throw new Exception("Unsupported SW version");

            return(version.ToString());
        }