Example #1
0
        private void yeniProje_Load(object sender, EventArgs e)
        {
            if (projeler.prjKay == "var")
            {
                txtYprjUyeAra.Enabled = true;
            }
            else
            {
                txtYprjUyeAra.Enabled = false;
            }


            butondurum = projeler.btnPrjduzen;

            try
            {
                if (butondurum == 1)
                {
                    btnPrjKaydet.Text = "GÜNCELLE";
                    gelenDuzenleme();
                }
                if (butondurum == 0)
                {
                    btnPrjKaydet.Text = "KAYDET";


                    DataTable dt = new DataTable();
                    dt         = db.prjOkumaID();
                    sonIdgelen = db.sonIDst;

                    sonID = Convert.ToInt32(sonIdgelen);
                }
            }
            catch (Exception hata)
            {
                if (hata.Message == "0 konumunda satır yok.")
                {
                }
                else
                {
                    MessageBox.Show(hata.Message);
                }
            }
        }