コード例 #1
0
ファイル: AddRoomAdmin.cs プロジェクト: emreoz37/Stok_Takip
 private void btn_Yetkilendir_Click(object sender, EventArgs e)
 {
     try
     {
         if (kisiId == 0 || odaId == 0)
         {
             throw new Exception("Kişi veya Oda Seçmediniz Lütfen Kontrol Edin !");
         }
         OdaController.OdaYetkilendir(kisiId, odaId);
         MessageBox.Show("Yetkilendirme Başarılı !", "Bilgi !", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Hata Meydana Geldi !", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }