Example #1
0
        internal void ordersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Data.CarID = dataGridView1[0, dataGridView1.CurrentRow.Index].Value.ToString();
            Data.Car   = dataGridView1[1, dataGridView1.CurrentRow.Index].Value.ToString() + " " + dataGridView1[2, dataGridView1.CurrentRow.Index].Value.ToString() + " year " + dataGridView1[3, dataGridView1.CurrentRow.Index].Value.ToString();

            orders orders = new orders();

            orders.MdiParent = main.ActiveForm;
            orders.Show();
        }
Example #2
0
        private void toolStripButton5_Click(object sender, EventArgs e)
        {
            cars tempChild = (cars)ActiveMdiChild;

            Data.CarID = tempChild.dataGridView1[0, tempChild.dataGridView1.CurrentRow.Index].Value.ToString();
            Data.Car   = tempChild.dataGridView1[1, tempChild.dataGridView1.CurrentRow.Index].Value.ToString() + " " + tempChild.dataGridView1[2, tempChild.dataGridView1.CurrentRow.Index].Value.ToString() + " year " + tempChild.dataGridView1[3, tempChild.dataGridView1.CurrentRow.Index].Value.ToString();

            orders orders = new orders();

            orders.MdiParent = ActiveForm;
            orders.Show();
        }