Esempio n. 1
0
 /// <summary>
 /// Handles the Click event of the btn_CritUpdate control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 /// Erstellt von Veit Berg, am 27.01.16
 private void btn_CritUpdate_Click(object sender, EventArgs e)
 {
     try{
         DataGridViewRow row    = dataGridView_Crits.SelectedRows[0];
         int             zelle1 = (int)row.Cells[0].Value;
         string          zelle2 = (string)row.Cells[1].Value;
         string          zelle3 = (string)row.Cells[2].Value;
         aktRowCrit.CritID          = zelle1;
         aktRowCrit.CritName        = zelle2;
         aktRowCrit.CritDescription = zelle3;
         Criterion_Update_View CritUpdate = new Criterion_Update_View(this, zelle1);
         CritUpdate.Show();
     }
     catch (Exception x)
     {
         MessageBox.Show(x.Message);
     }
 }
 /// <summary>
 /// Handles the Click event of the btn_CritUpdate control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 /// Erstellt von Veit Berg, am 27.01.16
 private void btn_CritUpdate_Click(object sender, EventArgs e)
 {
     try{
     DataGridViewRow row = dataGridView_Crits.SelectedRows[0];
     int zelle1 = (int)row.Cells[0].Value;
     string zelle2 = (string)row.Cells[1].Value;
     string zelle3 = (string)row.Cells[2].Value;
     aktRowCrit.CritID = zelle1;
     aktRowCrit.CritName = zelle2;
     aktRowCrit.CritDescription = zelle3;
     Criterion_Update_View CritUpdate = new Criterion_Update_View(this, zelle1);
     CritUpdate.Show();
     }
     catch (Exception x)
     {
         MessageBox.Show(x.Message);
     }
 }