示例#1
0
        private void redactionSalesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RedactionSales frm = new RedactionSales();

            frm.MdiParent = this;
            frm.Show();
        }
示例#2
0
        private void deleteToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            this.Hide();


            Customer cu  = new Customer();
            Orders   ord = new Orders();

            ord.OrderNo = Convert.ToString(dgv_SearchS.CurrentRow.Cells[0].Value);
            cu.Cust_Id  = Convert.ToString(dgv_SearchS.CurrentRow.Cells[1].Value);
            cu.Name     = Convert.ToString(dgv_SearchS.CurrentRow.Cells[2].Value);
            cu.LName    = Convert.ToString(dgv_SearchS.CurrentRow.Cells[3].Value);
            // cu.Address = Convert.ToString(dgv_SearchS.CurrentRow.Cells[3].Value);
            cu.City         = Convert.ToString(dgv_SearchS.CurrentRow.Cells[5].Value);
            cu.Country      = Convert.ToString(dgv_SearchS.CurrentRow.Cells[4].Value);
            ord.Product     = Convert.ToString(dgv_SearchS.CurrentRow.Cells[6].Value);
            ord.Price       = Convert.ToString(dgv_SearchS.CurrentRow.Cells[7].Value);
            ord.Quantity    = Convert.ToString(dgv_SearchS.CurrentRow.Cells[8].Value);
            ord.OrderDate   = Convert.ToString(dgv_SearchS.CurrentRow.Cells[9].Value);
            ord.SheepedDate = Convert.ToString(dgv_SearchS.CurrentRow.Cells[10].Value);

            RedactionSales frm = new RedactionSales(cu, ord);

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