Exemplo n.º 1
0
 private bool ColumnCheck()
 {
     if (TbColumnName.TextLength > 2)
     {
         if (!_columnCrud.NameCheck(TbColumnName.Text))
         {
             return(true);
         }
         else
         {
             MessageBox.Show("Aynı isimle başka bir sütun bulunmaktadır.", "Hata", MessageBoxButtons.OK, MessageBoxIcon.Error);
             return(false);
         }
     }
     else
     {
         MessageBox.Show("Sütun adı 2 karakterden kısa olamaz.", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         return(false);
     }
 }