示例#1
0
        private string GetPanelVersion()
        {
            string prefix     = "SW version:";
            string ModifyTime = PubFunc.GetCompileTime().ToString("MM/dd/yyyy HHmm");

            System.Version ver        = Assembly.GetEntryAssembly().GetName().Version;
            string         appVersion = ver.Major.ToString() + "." + ver.Minor.ToString() + "."
                                        //+ ver.Build.ToString() + "."
                                        + ver.Revision.ToString() + "  ";
            string exeBitLen = string.Empty;

            if (IntPtr.Size == 4)
            {
                exeBitLen = " Layout 32bit";
            }
            else if (IntPtr.Size == 8)
            {
                exeBitLen = " Layout 64bit";
            }
            else
            {
                //未来肯定有
            }
            return(prefix + appVersion + ModifyTime + exeBitLen + "\n");
        }
示例#2
0
        private void SetQaPass()
        {
            string namePath = Application.StartupPath + "\\setup\\Vender.xml";

            _qaPass.Visible = Authentication.HasAuthenticationed(namePath, PubFunc.GetCompileTime());
        }