Jump to content

C# Ufak Bir 2.hesaplamayı Yapamadım


Anarchosa
 Share

Recommended Posts

Formda bir hesaplama yapıyorum sonucu veriyor  kaydediyorum sonra bir başka butonla sıfırlama yapıyorum yani radio buton veya textbox içine girilen değeleri siliyorum sildikten sonra tekrar hesaplama yapıyorum hesaplamıyor progressBar1 sürekli duruyor hata vermiyor ama tekrar hesaplama yapmıyor bunu nasıl çözebilirim ? ben formu kapatıp açınca hesaplama yapabiliyorum

 

hesaplama

sonuc1.Visible = true;

          
            progressBar1.Increment(10);
            baryuzdesi.Visible = true;
            if (i < 100)
            {

                i++;
                i++;
                i++;
                i++;
                i++;
                i++;
                i++;
                i++;
                i++;
                i++;

                progressBar1.Value = i;
                baryuzdesi.Text = "% " + i;

                if (progressBar1.Value == 100)
                {
                  
                    yapisalafetm();
                    yumusakkat();
                    katsayisii();
                    kisakolon();
                    duzeyduzen();
                    planduzen();
                    tepeyan1();
                    yapinizam1();
                    AgirCilma();
                    tabanpuan1();
                    sonuc1.Visible = true;
                    guvendurumu.Visible = true;
                    deger = yapisalafetm1 + yumusakkatt + binagorseliyii + tabanpuan + duzeyduzen1 + planduzen1 + kisakolon1 + tepeyan + yapiortaa + agircilma;
                    sonuc1.Text = deger.ToString();
                    sonuc1.Visible = true;
                    guvendurumu.Visible = true;

                   

                    if (deger <= 65)
                    {
                        sonuc1.Visible = true;
                        guvendurumu.Text = "DEPREM BÖLGESİ";
                        basarisiz.Visible = true;
                        basarili.Visible = false;
                        cevapla.Stop();
                    }
                    else
                    {
                        guvendurumu.Text = "GÜVENLİ BÖLGE";
                        sonuc1.Visible = true;
                        basarili.Visible = true;
                        basarisiz.Visible = false;
                        cevapla.Stop();
                    }
                }


Sıfırlama içeriği
 

Alıntı


           kaydetToolStripMenuItem1.Enabled = true;

            cevapla.Stop();
            sonuc = Convert.ToString(sonuc1);
            yapi_kullanım_türü.Text = "";
            tepevar.Checked = false;
            tepeyok.Checked = false;
            yapisalsistem.Checked = false;
            yapisalcerveveli.Checked = false;
            binagorseliyi.Checked = false;
            binagorselorta.Checked = false;
            binagorselkotu.Checked = false;
            yumusakvar.Checked = false;
            yumusakyok.Checked = false;
            yapiorta.Checked= false;
            farkliorta.Checked = false;
            yapikenar.Checked = false;
            farklikenar.Checked = false;
            agircikmavar.Checked = false;
            agircikmayok.Checked = false;
            tepevar.Checked = false;
            duseydenvar.Checked = false;
            duseyduzenyok.Checked = false;
            bina_kimlik_no.Text = "";
            bina_isim.Text = "";
            bina_pafta.Text = "";
            bina_yasi.Text = "";
            map_x.Text = "";
            map_y.Text = "";
            zemin_sds.Text = "";
            kac_kat.Text = "";
            guvendurumu.Visible = false;
            basarili.Visible = false;
            basarisiz.Visible = false;
            planduzenvar.Checked = false;
            planduzenyok.Checked = false;
            kisacar.Checked = false;
            kisayok.Checked = false;
            sonuc1.Visible = false;
            baglanti.Close();

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...