using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ayça_kahraman
{
    public partial class Form2 : Form
    {
        public Form1 frm1;
        public Form2()
        {
            InitializeComponent();
        }

       



        private void Form2_Load(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            frm1.frm5.ShowDialog();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            frm1.frm5.bag.Open();
            frm1.frm5.kmt.Connection = frm1.frm5.bag;
            frm1.frm5.kmt.CommandText = "INSERT INTO musteri(Kodu,Adi,Telefonu,Eknot,YetkiliKisi) VALUES ('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "','" + textBox5.Text + "') ";
            frm1.frm5.kmt.ExecuteNonQuery();
            frm1.frm5.bag.Close();
            frm1.frm5.kmt.Dispose();

            MessageBox.Show("Kayıt İşlemi Başarıyla Tamamlandı..");

        }
    }
}
