private void yeniMüşteriEkleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form        frm = new Form();
            MusteriEkle c   = new MusteriEkle();

            c.Show();
        }
Esempio n. 2
0
        private void müşteriEkleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form kontrol = Application.OpenForms["MusteriEkle"];

            if (kontrol == null)
            {
                MusteriEkle acılan = new MusteriEkle(yetkili);
                acılan.MdiParent     = this;
                acılan.StartPosition = FormStartPosition.CenterParent;
                AnaPanel.Controls.Add(acılan);
                acılan.Show();
            }
            else
            {
                Temp = Application.OpenForms["MusteriEkle"];
                Temp.Focus();
            }
        }
 private void button2_Click(object sender, EventArgs e)
 {
     if (dataGridView1.CurrentRow != null)
     {
         var musteriId = dataGridView1.CurrentRow.Cells[0].Value.ToString();
         var f = new MusteriEkle(int.Parse(musteriId));
         var kontrol = f.ShowDialog();
         if (kontrol == DialogResult.OK)
         {
             var sql = "select * from Musteriler";
             var musteriler = _db.SelectTable(sql);
             dataGridView1.DataSource = musteriler;
             dataGridView1.Columns[0].Visible = false;
         }
     }
     else
         MessageBox.Show("Muşteri seçiniz!!");
 }
        private void button1_Click(object sender, EventArgs e)
        {
            var f = new MusteriEkle();

            var kontrol = f.ShowDialog();
            if (kontrol == DialogResult.OK)
            {
                var sql = "select * from Musteriler";
                var musteriler = _db.SelectTable(sql);
                dataGridView1.DataSource = musteriler;
                dataGridView1.Columns[0].Visible = false;
            }
        }
Esempio n. 5
0
        private void btnEkle_Click(object sender, EventArgs e)// yeni kisi ekleme..
        {
            MusteriEkle mform = new MusteriEkle();

            mform.ShowDialog();
        }