Esempio n. 1
0
 public bool Addteacher(string id, string name, string department, string major)
 {
     if (!string.IsNullOrEmpty(id) && !string.IsNullOrEmpty(name) && !string.IsNullOrEmpty(department) && !string.IsNullOrEmpty(major))
     {
         if (std.Addteacher(id, name, department, major))
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         MessageBox.Show("请完善信息");
         return(false);
     }
 }