Esempio n. 1
0
 public void AdminYetkisiVer(object sender, EventArgs e)
 {
     ExceptionCatcher(() =>
     {
         string samName     = dataGridView1.SelectedCells[2].Value.ToString();
         var adminYetkiForm = new AdminUye(samName);
         adminYetkiForm.Show();
     });
 }
Esempio n. 2
0
        public void AdminYetkisiVer(object sender, EventArgs e)
        {
            try
            {
                string samName        = dataGridView1.SelectedCells[2].Value.ToString();
                var    adminYetkiForm = new AdminUye(samName);
                adminYetkiForm.Show();
            }
            catch (ArgumentOutOfRangeException)
            {
                MessageBox.Show("Lütfen tüm satırı seçiniz", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

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