Ejemplo n.º 1
0
 private void MainProjectManager_Load(object sender, EventArgs e)
 {
     this.btnNewStruct.Enabled          = false;
     this.tbProjectDesign.SelectedIndex = 0;
     string[] myRows = myManageDB.getDataFromCells("proNO", "ProjectManager");
     this.setDataGridViewControl(myRows);
 }
 private void btnSearch_Click(object sender, EventArgs e)
 {
     string[] myRows = null;
     if (this.dgvSelectProject.DataSource != null)
     {
         this.dgvSelectProject.DataSource = null;
     }
     myDTSelectProject.Rows.Clear();
     if (this.txtProjectName.Text != "")
     {
         myRows = myManageDB.getDataFromCells("proNO", "ProjectManager", "proName", this.txtProjectName.Text);
     }
     else
     {
         myRows = myManageDB.getDataFromCells("proNO", "ProjectManager", "proNO", this.txtProjectNO.Text);
     }
     if (myRows != null)
     {
         setDataGridViewControl(myRows);
     }
 }
Ejemplo n.º 3
0
 private void MainCaseManager_Load(object sender, EventArgs e)
 {
     this.tbcCaseDesign.SelectedIndex = 0;
     string[] myRows = myManageDB.getDataFromCells("ceCaseNO", "CaseManager");
     setDataGridViewControl(myRows);
 }