Esempio n. 1
0
 protected void gvYorumlar_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         using (cUrunGenel UI = new cUrunGenel())
         {
             DataRow dr = UI.ListeleYorum(gvYorumlar.SelectedDataKey["ID"].ToShort(-1), 0, null).Rows[0];
             if (dr["AKTIF"].ToShort(0) == (short)eAktifDurum.Pasif)
             {
                 UI.IslemYorum(dr["ID"].ToInt(), eAktifDurum.Aktif);
             }
             else if (dr["AKTIF"].ToShort(0) == (short)eAktifDurum.Aktif)
             {
                 UI.IslemYorum(dr["ID"].ToInt(), eAktifDurum.Pasif);
             }
             GridDoldur();
         }
     }
     catch (Exception ex)
     {
         cUIAraclari.cLog.Write(ex, cUIAraclari._iKullaniciID);
     }
 }