Example #1
0
        private void carsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Data.ClientID = dataGridView1[0, dataGridView1.CurrentRow.Index].Value.ToString();

            cars cars = new cars();

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

            Data.ClientID = tempChild.dataGridView1[0, tempChild.dataGridView1.CurrentRow.Index].Value.ToString();

            cars cars = new cars();

            cars.MdiParent = ActiveForm;
            cars.Show();
        }
Example #3
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();
        }
Example #4
0
        private void toolStripButton7_Click(object sender, EventArgs e)
        {
            cars tempChild = (cars)ActiveMdiChild;

            tempChild.deleteTheCarToolStripMenuItem_Click(tempChild, e);
        }