private void btnUMainAISubmit_Click(object sender, EventArgs e) { if (Int32.Parse(textBoxUMainGRE.Text) < 34 || Int32.Parse(textBoxUMainGRE.Text) > 260) { MessageBox.Show("ERROR: Outside of range 34-260"); return; } if (Int32.Parse(textBoxUMainLoR.Text) < 0 || Int32.Parse(textBoxUMainLoR.Text) > 5) { MessageBox.Show("ERROR: Outside of range 0-5"); return; } if (Int32.Parse(textBoxUMainGPA.Text) < 0 || Int32.Parse(textBoxUMainGPA.Text) > 10) { MessageBox.Show("ERROR: Outside of range 0-10"); return; } if (Int32.Parse(textBoxUMainSoP.Text) < 0 || Int32.Parse(textBoxUMainSoP.Text) > 5) { MessageBox.Show("ERROR: Outside of range 0-5"); return; } if (Int32.Parse(textBoxUMainTOEFL.Text) < 0 || Int32.Parse(textBoxUMainTOEFL.Text) > 120) { MessageBox.Show("ERROR: Outside of range 0-120"); return; } bool research = false; if (radioButtonAIYes.Checked == true) { research = true; } else if (radioButtonAINo.Checked == true) { research = false; } uniQuery academicData = new uniQuery(); academicData.insertAcademicData(username_current, textBoxUMainGPA.Text, textBoxUMainGRE.Text, textBoxUMainTOEFL.Text, textBoxUMainSoP.Text, textBoxUMainLoR.Text, research); }
private void btnGenerateReport_Click(object sender, EventArgs e) { uniQuery academicData_ = new uniQuery(); academicData_.generateReport(username_current); }
private void btnUniversitySearcher_Click(object sender, EventArgs e) { uniQuery newQuery = new uniQuery(); newQuery.universityQuery(username_current, textBoxUniversitySearcher.Text); }