private void button1_Click(object sender, EventArgs e) { frmRubrics1 r1 = new frmRubrics1(); r1.Show(); this.Hide(); }
/// <summary> /// On click Edit , Delete and Update Data /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dgvCLO_CellContentClick(object sender, DataGridViewCellEventArgs e) { int index = e.RowIndex; DataGridViewRow selected_row = dgvCLO.Rows[index]; string id = selected_row.Cells[0].Value.ToString(); Int32.TryParse(id, out MyClass.CLOid); CLO clo = new CLO(); if (e.ColumnIndex == 4) { clo.EditCLO(); this.Hide(); } else if (e.ColumnIndex == 5) { clo.DeleteCLO(); } else if (e.ColumnIndex == 6) { frmRubrics1 r1 = new frmRubrics1(); r1.Show(); this.Hide(); } }
private void btnBack_Click(object sender, EventArgs e) { frmRubrics1 rubric = new frmRubrics1(); rubric.Show(); this.Hide(); }