Exemplo n.º 1
0
        private void redactionCustomerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RedactionCustomer frm = new RedactionCustomer();

            frm.MdiParent = this;
            frm.Show();
        }
Exemplo n.º 2
0
        private void redactionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();

            Customer cu = new Customer();

            cu.Cust_Id = Convert.ToString(dgv_SearchCustomer.CurrentRow.Cells[0].Value);
            cu.Name    = Convert.ToString(dgv_SearchCustomer.CurrentRow.Cells[1].Value);
            cu.LName   = Convert.ToString(dgv_SearchCustomer.CurrentRow.Cells[2].Value);
            cu.Address = Convert.ToString(dgv_SearchCustomer.CurrentRow.Cells[3].Value);
            cu.City    = Convert.ToString(dgv_SearchCustomer.CurrentRow.Cells[4].Value);
            cu.Country = Convert.ToString(dgv_SearchCustomer.CurrentRow.Cells[5].Value);


            RedactionCustomer frm = new RedactionCustomer(cu);

            frm.MdiParent = this.MdiParent;
            frm.Show();
        }