private void button1_Click(object sender, EventArgs e)
        {
            VeriSinifi yeniVeri = new VeriSinifi();

            yeniVeri.Age                = textBox1.Text + ",";
            yeniVeri.Gender             = radioButton1.Checked ? "Male," : "Female,";
            yeniVeri.Polyuria           = radioButton3.Checked ? "Yes," : "No,";
            yeniVeri.Polydipsia         = radioButton5.Checked ? "Yes," : "No,";
            yeniVeri.Sudden_weight_loss = radioButton7.Checked ? "Yes," : "No,";
            yeniVeri.weakness           = radioButton9.Checked ? "Yes," : "No,";
            yeniVeri.Polyphagia         = radioButton11.Checked ? "Yes," : "No,";
            yeniVeri.Genital_thrush     = radioButton13.Checked ? "Yes," : "No,";
            yeniVeri.visual_blurring    = radioButton15.Checked ? "Yes," : "No,";
            yeniVeri.Itching            = radioButton17.Checked ? "Yes," : "No,";
            yeniVeri.Irrıtability       = radioButton19.Checked ? "Yes," : "No,";
            yeniVeri.delayed_Healing    = radioButton21.Checked ? "Yes," : "No,";
            yeniVeri.partial_Paresis    = radioButton23.Checked ? "Yes," : "No,";
            yeniVeri.muscle_Stiffness   = radioButton25.Checked ? "Yes," : "No,";
            yeniVeri.Alopecia           = radioButton27.Checked ? "Yes," : "No,";
            yeniVeri.Obesity            = radioButton29.Checked ? "Yes," : "No,";
            yeniVeri._class             = radioButton1.Checked ? "Positive" : "Negative";

            string yeniSatir = yeniVeri.Age + yeniVeri.Gender + yeniVeri.Polyuria + yeniVeri.Polydipsia + yeniVeri.Sudden_weight_loss + yeniVeri.weakness + yeniVeri.Polyphagia + yeniVeri.Genital_thrush + yeniVeri.visual_blurring + yeniVeri.Itching + yeniVeri.Irrıtability + yeniVeri.delayed_Healing + yeniVeri.partial_Paresis + yeniVeri.muscle_Stiffness + yeniVeri.Alopecia + yeniVeri.Obesity + yeniVeri._class;

            // güncelleme islemi  method içindeki true güncelleme yapmasını ayarlıyor


            hastaTabloSinifi.veriTemizle("Verisini Güncellemek İstiyor musunuz ?", "Kayıt Guncelleme", true, satir, yeniSatir, satirNo);
            this.Close();
        }
예제 #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     ////Silme İşlemi
     if (isartliSatir == 0)
     {
         MessageBox.Show("Lütfen Bir Seçim Yapın", "Uyarı");
     }
     else
     {
         this.Close();
         HastaTabloSinifi hastaTabloSinifi = new HastaTabloSinifi();
         hastaTabloSinifi.veriTemizle("Verisini Silmek İstiyor musunuz ?", "Kayıt Silme", false, satir, null, isartliSatir);
         button = true;
     }
 }