private void button2_Click(object sender, EventArgs e)
        {
            supplier Sup = new supplier();

            Sup.butadd.Enabled         = true;
            Sup.butnew.Visible         = false;
            Sup.textsupName.Enabled    = true;
            Sup.textSupphone.Enabled   = true;
            Sup.textSupemail.Enabled   = true;
            Sup.textSupaddress.Enabled = true;

            Sup.text_Sup_ID.Text    = this.dataGridView1.CurrentRow.Cells[0].Value.ToString();
            Sup.textsupName.Text    = this.dataGridView1.CurrentRow.Cells[1].Value.ToString();
            Sup.textSupphone.Text   = this.dataGridView1.CurrentRow.Cells[2].Value.ToString();
            Sup.textSupemail.Text   = this.dataGridView1.CurrentRow.Cells[3].Value.ToString();
            Sup.textSupaddress.Text = this.dataGridView1.CurrentRow.Cells[5].Value.ToString();
            Sup.text_user_add.Text  = this.dataGridView1.CurrentRow.Cells[7].Value.ToString();
            Sup.Text        = "Supplier Update:" + this.dataGridView1.CurrentRow.Cells[1].Value.ToString();
            Sup.butadd.Text = "Update";
            Sup.state       = "update";
            Sup.ShowDialog();

            Sup.Close();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            supplier suplier = new supplier();

            suplier.ShowDialog();
        }
        private void addNewSuppliersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            supplier frm = new supplier();

            frm.ShowDialog();
        }