Exemplo n.º 1
0
        public AboutBox()
        {
            this.InitializeComponent();
            SoftInfor softInfor = SoftInfor.GetSoftInfor();

            this.Text = "About " + softInfor.ProductName;
            this.labelProductName.Text   = "Software name:" + softInfor.ProductName;
            this.labelVersion.Text       = "Version:" + softInfor.Version;
            this.labelCopyright.Text     = "CopyRight©:" + softInfor.CopyRight;
            this.labelCompanyName.Text   = "CompanyName:" + softInfor.CompanyName;
            this.textBoxDescription.Text = softInfor.Description + "\r\nModify By Guangshan\r\n修复了无法远程连接兰德华钥匙箱的问题\r\n故障原因是对于不同网段的设备使用了错误的连接方式:广播导致的。强制设置为DNS方式连接。";
            this.logoPictureBox.Image    = softInfor.Logo;
        }
Exemplo n.º 2
0
        public AboutBox()
        {
            this.InitializeComponent();
            SoftInfor softInfor = SoftInfor.GetSoftInfor();

            this.Text = "About " + softInfor.ProductName;
            this.labelProductName.Text   = "Software name:" + softInfor.ProductName;
            this.labelVersion.Text       = "Version:" + softInfor.Version;
            this.labelCopyright.Text     = "CopyRight©:" + softInfor.CopyRight;
            this.labelCompanyName.Text   = "CompanyName:" + softInfor.CompanyName;
            this.textBoxDescription.Text = softInfor.Description;
            this.logoPictureBox.Image    = softInfor.Logo;
        }
Exemplo n.º 3
0
 public static SoftInfor GetSoftInfor()
 {
     if (SoftInfor.singleton == null)
     {
         SoftInfor.singleton = new SoftInfor();
         SoftInfor.singleton.resourcesName = Environment.CurrentDirectory + "\\resources.dll";
         if (!SoftInfor.singleton.ReadSoftInforResources(SoftInfor.singleton.resourcesName))
         {
             SoftInfor.singleton.LoadSoftInforDefaultValue();
             SoftInfor.singleton.WriteSoftInforResources(SoftInfor.singleton.resourcesName);
         }
     }
     return(SoftInfor.singleton);
 }