Пример #1
0
        private void Kontrol()
        {
            BusinessLogicLayer.BLL BLL = new BusinessLogicLayer.BLL();


            if (KontrolCevap == true)
            {
                List <Kelime> ListeBasarili = BLL.ListeleDerece(4);
                for (int i = 0; i < ListeBasarili.Count; i++)
                {
                    if (ID == ListeBasarili[i].KelimeID)
                    {
                        BLL.KelimeDurumDuzenle(ID, "ogrenilmis");
                        BLL.KelimeDereceDuzenle(ID, -1);
                        KelimeDoldur();
                        break;
                    }
                }

                BLL.KelimeDereceDuzenle(ID, derece++);
                KelimeDoldur();
            }
            else
            {
                BLL.KelimeDurumDuzenle(ID, "ogren");
                BLL.KelimeDereceDuzenle(ID, -1);
                KelimeDoldur();
            }
        }
        private void btn_bitir_Click(object sender, EventArgs e)
        {
            BusinessLogicLayer.BLL BLL   = new BusinessLogicLayer.BLL();
            List <Kelime>          liste = BLL.ListeleDurum("ogren");

            for (int i = 0; i < liste.Count; i++)
            {
                BLL.KelimeDurumDuzenle(liste[i].KelimeID, "test");
                BLL.KelimeDereceDuzenle(liste[i].KelimeID, 0);
            }
            this.Hide();
            ////Test_ t =  Test_.Instance;
            ////t.Show();
        }
        private void btn_secBiliyorum_Click_1(object sender, EventArgs e)
        {
            int j = 0;

            BusinessLogicLayer.BLL BLL = new BusinessLogicLayer.BLL();
            Guid KelimeID = ((Kelime)listBox_sec.SelectedItem).KelimeID;

            BLL.KelimeDurumDuzenle(KelimeID, "test");
            BLL.KelimeDereceDuzenle(KelimeID, 0);
            listBox_sec.Items.Remove(listBox_sec.SelectedItem);
            j++;

            if (listBox_sec.ItemCount == 0)
            {
                pnl_sec.Enabled = false;
            }
        }