Ejemplo n.º 1
0
        void Temizle()
        {
            foreach (Control ct in splitContainer1.Panel1.Controls)
            {
                if (ct is TextBox /*|| ct is ComboBox*/)
                {
                    ct.Text = "";                                      //=> silm işlemini genele yayan alternatif
                }
            }
            //else if (ct is ComboBox) ct.Text = ""; => combobox'ın alternatifi

            //txtAdres.Text = "";
            //txtCariKod.Text = "";
            //txtDepartman.Text = "";
            //txteMail.Text = "";
            //txtFaks.Text = "";
            //txtFirmaAdi.Text = "";
            //txtGsm.Text = "";
            //txtTel.Text = "";
            //txtVd.Text = "";
            //txtVn.Text = "";
            //txtYetkili.Text = "";

            txtCariKod.Text = N.CariNumara();        // Kaydet Butonundan sonra textboxları temizleyip carinumarayı 1                                               arttırdı.
            edit            = false;
            firmaId         = "";
        }
Ejemplo n.º 2
0
 private void frmFirma_Load(object sender, EventArgs e)
 {
     txtCariKod.Text = N.CariNumara();
 }