Ejemplo n.º 1
0
        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Delivery_Management dm = new Delivery_Management();

            dm.ShowDialog();
            //Available_Vacant_Vehicles avv = new Available_Vacant_Vehicles();
            //avv.ShowDialog();
        }
Ejemplo n.º 2
0
        private void dgv_av_vehicles_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            Delivery_Management dm = new Delivery_Management();
            int indexRow;

            indexRow = e.RowIndex;
            DataGridViewRow row = dgv_av_vehicles.Rows[indexRow];

            dm.txtvid.Text             = row.Cells["vehicle_id"].Value.ToString();
            dm.txtplateno.Text         = row.Cells["plate_no"].Value.ToString();
            dm.txtmodel.Text           = row.Cells["model"].Value.ToString();
            dm.txtloadcapacity_kg.Text = row.Cells["max_weight_kg"].Value.ToString();

            dm.ShowDialog();
        }