Ejemplo n.º 1
0
 private IList<string[]> GetUserData()
 {
     B_User bll = new B_User();
     int num;
     string text = string.Empty;
     if (this.RadUserType0.Checked)
     {
         num = 0;
     }
     else if (this.RadUserType2.Checked)
     {
         num = 2;
         text = this.TxtUserName.Text;
         if (string.IsNullOrEmpty(text))
         {
             function.WriteErrMsg("没有输入指定会员名");
             this.TxtUserName.Focus();
             return null;
         }
     }
     else
     {
         num = 3;
         if (string.IsNullOrEmpty(this.TxtEmails.Text))
         {
             function.WriteErrMsg("没有指定收件人邮件地址");
             this.TxtEmails.Focus();
             return null;
         }
         IList<string[]> list = new List<string[]>();
         foreach (string str2 in this.TxtEmails.Text.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
         {
             list.Add(new string[] { "", str2 });
         }
         return list;
     }
     return bll.GetUserNameAndEmailList(num, text);
 }