Beispiel #1
0
        private void btn_DepartmanListele_ItemClick(object sender, ItemClickEventArgs e)
        {
            DepartmanListele rlForm = new DepartmanListele();

            this.Close();
            rlForm.Show();
        }
Beispiel #2
0
 private void btn_DepartmanSil_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         DialogResult sonuc = MessageBox.Show("Departman Silinecektir !", "Uyarı !", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
         if (sonuc == DialogResult.Yes)
         {
             DepartmanController.DepartmanSil(_departmanId);
             MessageBox.Show("Departman Silindi !\nDepartmanlar Listesine Yönlendiriliyorsunuz !", "Bilgi !", MessageBoxButtons.OK, MessageBoxIcon.Information);
             Thread.Sleep(500);
             DepartmanListele rlForm = new DepartmanListele();
             this.Close();
             rlForm.Show();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Departmana Bağlı Zimmetler Vardır Departma Silinemez  !", "Bilgi !", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }