Пример #1
0
        private async void FrmTransportOffers_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            var id  = transportsGrid.SelectedRows[0].Cells[0].Value;
            var res = await _service.GetById <TransportOfferDTO>(int.Parse(id.ToString()));

            frmTransportOfferDetails frm = new frmTransportOfferDetails(int.Parse(id.ToString()));

            this.Parent.Controls.Add(frm);
            frm.Show();
        }
Пример #2
0
        private void btnNewOffer_Click(object sender, EventArgs e)
        {
            frmTransportOfferDetails frm = new frmTransportOfferDetails()
            {
                TopLevel    = false,
                AutoScroll  = false,
                WindowState = FormWindowState.Maximized
            };

            this.Parent.Controls.Add(frm);
            frm.Show();
        }
Пример #3
0
        private void transportsGrid_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            var id = transportsGrid.SelectedRows[0].Cells[0].Value;
            frmTransportOfferDetails frm = new frmTransportOfferDetails(int.Parse(id.ToString()))
            {
                TopLevel    = false,
                AutoScroll  = false,
                WindowState = FormWindowState.Maximized
            };

            this.Parent.Controls.Add(frm);
            frm.Show();
        }