示例#1
0
 private void tbName_Leave(object sender, EventArgs e)
 {
     ((Bunifu.Framework.UI.BunifuMaterialTextbox)sender).Text =
         Ultilities.ToTitleCase(((Bunifu.Framework.UI.BunifuMaterialTextbox)sender).Text);
     if (!Ultilities.IsValidName(tbName.Text.Trim()))
     {
         lbNameError.Visible = true;
         tbName.Focus();
     }
 }