Beispiel #1
0
        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            AddRoomAdmin adForm = new AddRoomAdmin();

            adForm.Show();
            this.Close();
        }
Beispiel #2
0
 private void btn_OdaDuzenle_Click(object sender, EventArgs e)
 {
     try
     {
         if (string.IsNullOrEmpty(txt_OdaAdi.Text))
         {
             throw new ValidationException("Oda Adını Boş Geçemezsiniz !");
         }
         OdaController.OdaEkle(txt_OdaAdi.Text, Convert.ToInt32(cmb_Departman.SelectedValue));
         MessageBox.Show("Oda Başarıyla Eklendi !", "İşlem Başarılı !", MessageBoxButtons.OK, MessageBoxIcon.Information);
         AddRoomAdmin adForm = new AddRoomAdmin();
         adForm.Show();
         this.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Hata Meydana Geldi !", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }