item.OnValidateCode += new Tianya.ValidateCodeHandler(s_OnValidateCode);
string s_OnValidateCode(object sender, ValidateCodeEventArgs args) { frmImage frm = new frmImage(args.Code); frm.StartPosition = FormStartPosition.CenterScreen; var c = frm.ShowDialog(this); return frm.Code; }