string left = new StreamReader(stream).ReadToEnd(); ' d. v9 X# K1 `. Z
stream.Close();4 \- H- ]. o% X) s% P; |# _/ D
if (Conversions.ToBoolean(Operators.OrObject(Operators.CompareObjectGreater(left, GlobalCode.g_settings["syns_db_date"], false), !File.Exists(Application.LocalUserAppDataPath + @"\tbssf.dat")))) 7 Z2 m$ i7 h0 H. S: W( ?
{3 F# d* {1 _/ r- k7 o1 u; S
DialogResult oK;$ ]3 O( [- N& e1 _, l
this.Show();) Q7 G* E3 p! X
Application.DoEvents(); 2 O+ S \) L3 I1 n2 c r
if (File.Exists(Application.LocalUserAppDataPath + @"\tbssf.dat"))! O7 u# {/ j3 v* j
{ : Y9 L/ J2 j+ D2 W8 `5 \$ o
oK = MessageBox.Show("A new version of the English synonyms database is available. Would you like to download it now? You will still be able to work while the new database downloads.", "Synonyms Db Update", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);" I" h* w t; t3 u
if (oK == DialogResult.OK)8 D8 F9 [) z& I/ ~9 s/ N
{) o6 N+ y8 P' v. W
MessageBox.Show("The English synonyms database has not yet been installed, or has undergone a format change. Click OK to download and install the database. This usually takes less than one minute for a broadband connection, but may take longer for slower connections.\r\n\r\nYou may begin working in the software while the database downloads, but it's recommended that you wait until it's finished in order to get the most out of The Best Spinner.", "Synonyms Db", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);( @7 \0 A$ ~9 u2 e
}# G. \2 [- u5 z, L
new Thread(new ThreadStart(this.DownloadSynsDbLaunch)).Start();1 P3 d) s: h& |' h9 D
}( H) n/ w" F. G2 X3 e4 j3 I
} 4 u2 M- ^- E Y: c9 C# {
else# r! K0 K/ C! d, ^( E, V- |' s
{ % c$ u, W/ v+ |
this.status.Text = "Latest synonyms db loaded."; ! d' @4 Q; u+ e
}6 u. i) W$ c z3 L4 A9 u2 h% v3 i
} 9 _5 ]/ h- E; {
3 u7 `5 |; a6 W
0 A3 l" Q+ A2 z( |$ C0 n8 N1 `
复制代码
我想是不是只要有一个正常的用户名,修改TBS的本地程序绕过密码后就能正常试用TBS了?(本地登录验证我已经绕过了,任意用户密码登录,就是重要操作的时候程序会因没有正确的用户名程序代码无法分析,就出现异常。)& a7 C5 s! k+ j; ?: Q6 g