Beispiel #1
0
        private bool CheckAvailability()
        {
            bool recordStstus = false;

            try
            {
                if (oStudentBL.CheckAvailability(txtStudentId.Text.Trim()))
                {
                    txtStudentId.Clear();
                    txtStudentId.Focus();
                    MessageBox.Show("Record already exist.!");
                    recordStstus = true;
                }
                else
                {
                    txtStudentId.Focus();
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(recordStstus);
        }