Esempio n. 1
0
        private void transportLinksBindingSource_AddingNew(object sender, AddingNewEventArgs e)
        {
            TransportLink link = new TransportLink();

            if (EditTransportLinkForm.EditLink(link))
            {
                e.NewObject = link;
            }
        }
Esempio n. 2
0
        private void transportLinksDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            TransportLink link = (TransportLink)transportLinksBindingSource.Current;

            if (link != null)
            {
                EditTransportLinkForm.EditLink(link);
            }
        }
Esempio n. 3
0
        public static bool EditLink(TransportLink link)
        {
            EditTransportLinkForm dlg = new EditTransportLinkForm(link);

            return(dlg.ShowDialog() == DialogResult.OK);
        }