/// <summary>
 /// ͨ�������ȡ��֤��
 /// </summary>
 /// <returns></returns>
 private static string GetVCodeByForm(Image image)
 {
     VCodeForm vCodeForm=new VCodeForm(image);
     if(vCodeForm.ShowDialog()==DialogResult.OK && !string.IsNullOrEmpty(vCodeForm.Value))
     {
         return vCodeForm.Value.Trim();
     }
     return "";
 }
Example #2
0
 /// <summary>
 /// ͨ�������ȡ��֤��
 /// </summary>
 /// <returns></returns>
 public static string GetVCodeByForm(Image image)
 {
     string ret;
        VCodeForm vCodeForm=new VCodeForm(image);
        if (vCodeForm.ShowDialog() == DialogResult.OK)
        {
        ret= vCodeForm.Value.Trim();
        }
        else
        ret= "BREAK";
     vCodeForm.Dispose();
     System.GC.ReRegisterForFinalize(vCodeForm);
     return ret;
 }