Exemplo n.º 1
0
        public void OpenFormToEdit(DataGrid dataGrid)
        {
            Shippers      ship = (Shippers)dataGrid.SelectedItems[0];
            ShippersAdder form = new ShippersAdder();

            form.ship             = ship;
            form.companyName.Text = ship.CompanyName;
            form.phone.Text       = ship.Phone;
            form.ShowDialog();
        }
Exemplo n.º 2
0
        public void OpenForm()
        {
            ShippersAdder form = new ShippersAdder();

            form.ShowDialog();
        }