Beispiel #1
0
        private void dataGridView2_DoubleClick(object sender, EventArgs e)
        {
            string selected_email = dataGridView2.CurrentRow.Cells["Email"].Value.ToString();

            foreach (Employee em in managment.GetAllFormerEmployees())
            {
                if (em.Email == managment.GetFormerEmployeeByEmail(selected_email).Email)
                {
                    MessageBox.Show(em.Reason);
                }
            }
        }