コード例 #1
0
 private void first_name_txt_TextChanged(object sender, EventArgs e)
 {
     if (first_name_txt.Text == "")
     {
         return;
     }
     if (!Regex.Match(first_name_txt.Text, @"^[a-zA-Z'.]{1,40}$").Success)
     {
         MessageBox.Show("Invalid first name");
         return;
     }
     if (!selectedFromDatgaSet)
     {
         createDataSet(_firstNameClass.getFirstName(first_name_txt.Text));
     }
 }
コード例 #2
0
        private void first_name_txt_TextChanged(object sender, EventArgs e)
        {
            if (first_name_txt.Text == "")
            {
                return;
            }
            if (!Regex.Match(first_name_txt.Text, @"^[a-zA-Z'.]{1,40}$").Success)
            {
                MessageBox.Show("Invalid first name");
                return;
            }

            if (!selectedFromDatgaSet)
            {
                dataSet = _firstNameClass.getFirstName(new List <Amazing_charts_sample_program_Patient_Format>(), getTextBoxData(new Patient()));
                if (dataSet.Count == 0 && Helper_Classes_namespace.ErrorMessages.getErrorMessage().CompareTo("") != 0)
                {
                    MessageBox.Show(Helper_Classes_namespace.ErrorMessages.getErrorMessage());
                    return;
                }
                createDataSet(dataSet);
            }
        }