コード例 #1
0
        private void NewClearTB()
        {
            newID         = db.Schools.Max(m => m.SchoolCode) + 1;
            skCodeTB.Text = newID.ToString();
            schoolTB.Clear();
            EmailTB.Clear();
            OfficeTB.Clear();
            ParishCB.SelectedIndex  = -1;
            VillageCB.SelectedIndex = -1;
            NewVillagebtn.Visible   = true;


            enable();
            PrinicipalGV.DataSource = null;
        }
コード例 #2
0
 public string ValidatePhone(string input)
 {
     if (input != null)
     {
         if (Regex.IsMatch(input, ppattern))
         {
             result = input;
         }
         else
         {
             ValidData();
             OfficeTB.Focus();
         }
     }
     else
     {
         ValidData();
         OfficeTB.Focus();
     }
     return(result);
 }