Esempio n. 1
0
 /// <summary>
 /// Handles the Click event of the btn_CritShow 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_CritShow_Click(object sender, EventArgs e)
 {
     try{
         using (CriterionController critShow = new CriterionController())
         {
             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;
             Criterion_Show_View CritShowView = new Criterion_Show_View(this, zelle1);
             CritShowView.Show();
         }
     }
     catch (Exception x)
     {
         MessageBox.Show(x.Message);
     }
 }
        /// <summary>
        /// Handles the Click event of the btn_CritShow 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_CritShow_Click(object sender, EventArgs e)
        {
            try{
            using (CriterionController critShow = new CriterionController())
            {
                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;
                Criterion_Show_View CritShowView = new Criterion_Show_View(this, zelle1);
                CritShowView.Show();

            }
            }
            catch (Exception x)
            {
                MessageBox.Show(x.Message);
            }
        }