private void button1_Click(object sender, EventArgs e) { addeval f = new addeval(); this.Hide(); f.Show(); }
private void create_Click(object sender, EventArgs e) { addeval s = new addeval(); this.Hide(); s.Show(); }
private void updatestu_Click(object sender, EventArgs e) { if (dataGridstudent.SelectedCells.Count != 0) { int rw = dataGridstudent.SelectedCells[0].RowIndex; String cmd = String.Format("Select Id from Evaluation Where Name = '{0}'", dataGridstudent.Rows[rw].Cells["Evaluation Name"].Value.ToString()); SqlCommand a = new SqlCommand(cmd, DatabaseConnection.getInstance().getConnection()); int id; id = (Int32)a.ExecuteScalar(); cmd = String.Format("Select GroupId from Project Join GroupProject On Project.Id = GroupProject.ProjectId Where Title = '{0}'", dataGridstudent.Rows[rw].Cells["Project Title"].Value.ToString()); a = new SqlCommand(cmd, DatabaseConnection.getInstance().getConnection()); int idp; idp = (Int32)a.ExecuteScalar(); addeval se = new addeval(id, idp); this.Hide(); se.Show(); } }