예제 #1
0
        } //end search projects page add project button

        private void SearchProjectsSearchButton_Click(object sender, EventArgs e)
        {
            bool pRadioChecked = projectNumRadioButton.Checked;
            bool dRadioChecked = projectDescriptionRadioButton.Checked;
            bool lRadioChecked = projectLeaderRadioButton.Checked;
            int  passable;

            if (pRadioChecked == true)
            {
                passable = 1;
            }
            else if (dRadioChecked == true)
            {
                passable = 2;
            }
            else if (lRadioChecked == true)
            {
                passable = 3;
            }
            else
            {
                passable = 4;
            }
            edit.ProjectSearch(searchProjectsTextBox.Text, projectsGrid, passable);
        }   //end project search button
예제 #2
0
 private void SearchProjectsSearchButton_Click(object sender, EventArgs e)
 {
     edit.ProjectSearch(searchProjectsTextBox.Text, projectsGrid);
 }