摘要:
public Result AS Stringpublic Index AS Integer=0Function GetStyle(masterRef as String) As String Index=Index+1 IF masterRef<>Result Then IF Index>=23 Then Result = masterRef Index=0 END IF Return "Y" Else IF Index>=23 Then Index=0 END IF Result = masterRef Return "N"
阅读全文
摘要:
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) {CultureInfo info = null;if (comboBox1.SelectedIndex == 0)SetLang("zh-cn", this, this.GetType());elseSetLang("en-us", this, this.GetType());}private void SetLang(string lang, Form form, Type formType){System.
阅读全文
摘要:
static string ConvertToChinese(double x){string s = x.ToString('#L#E#D#C#K#E#D#C#J#E#D#C#I#E#D#C#H#E#D#C#G#E#D#C#F#E#D#C#.0B0A');string d = Regex.Replace(s, @'((?<=-|^)[^1-9]*)|((?'z'0)[0A-E]*((?=[1-9])|(?'-z'(?=[F-L\.]|$))))|((?'b'[F-L])(?'z'0)[0A-L]*(
阅读全文