Пример #1
0
        private void DGVRoute_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            Bus b = new Bus();

            foreach (Bus ob in busBindingSource.List)
            {
                if (ob.Id == (DGVRoute.SelectedRows[0].DataBoundItem as Route).IdBus)
                {
                    b = ob;
                    break;
                }
            }
            FormBus fr = new FormBus(b);

            fr.Show();
        }
Пример #2
0
        private void DGVBus_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            FormBus fr = new FormBus(DGVBus.SelectedRows[0].DataBoundItem as Bus);

            fr.Show();
        }