/// <summary> /// 讀取文件 /// </summary> public void LoadDecryptFile() { //Load File DesFile des = new DesFile(); string s = null; s = des.DecryptFile(FileName); if (string.IsNullOrEmpty(s)) { return; } string[] ary = s.Split(new char[] { ';' }); int i = 0; for (i = 0; i <= ary.Length - 1; i++) { s = ary[i]; switch (i) { case 0: this.SetingPath = s; break; case 1: this.LogPath = s; break; } } }
/// <summary> /// 讀取文件 /// </summary> public void LoadDecryptFile() { //Load File DesFile des = new DesFile(); string s = null; s = des.DecryptFile(FileName); if (string.IsNullOrEmpty(s)) { return; } string[] ary = s.Split(new char[] { ';' }); int i = 0; for (i = 0; i <= ary.Length - 1; i++) { s = ary[i]; switch (i) { case 0: this.LoginID = s; break; case 1: this.Passward = s; break; case 2: this.AutoLogin = bool.Parse(s); break; case 3: this.StationNo = s; break; case 4: this.StationName = s; break; case 5: this.LoginName = s; break; } } }
/// <summary> /// 讀取文件 /// </summary> public void LoadDecryptFile() { //Load File DesFile des = new DesFile(); string s = null; s = des.DecryptFile(FileName); if (string.IsNullOrEmpty(s)) { return; } string[] ary = s.Split(new char[] { ';' }); int i = 0; for (i = 0; i <= ary.Length - 1; i++) { s = ary[i]; switch (i) { case 0: this.LicenseServer = s; break; case 1: this.DataBaseType = System.Convert.ToInt32(s); break; case 2: this.UserName = s; break; case 3: this.Password = s; break; case 4: this.UseTrusted = bool.Parse(s); break; } } }