//Agy
        private void btnAgyAdd_Click(object sender, RoutedEventArgs e)
        {
            AgiEkle agiEkle = new AgiEkle();

            agiEkle.FormTuru           = "Yeni";
            agiEkle.grdAgy.DataContext = new Agy();
            agiEkle.formMain           = this;
            agiEkle.Show();
        }
        private void btnAgyUpdate_Click(object sender, RoutedEventArgs e)
        {
            Agy selectedList = lvAgy.SelectedItem as Agy;

            AgiEkle agiEkle = new AgiEkle();

            agiEkle.FormTuru           = "Güncelle";
            agiEkle.grdAgy.DataContext = selectedList;
            agiEkle.formMain           = this;
            agiEkle.Show();
        }