private void webLinkGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (webLinkGrid.Rows[e.RowIndex] != null) { MaintWebLink maintLink = new MaintWebLink((WebLink)webLinkGrid.Rows[e.RowIndex].DataBoundItem); maintLink.ShowDialog(); DisplayData(); } }
private void btnNew_Click(object sender, EventArgs e) { MaintWebLink newlink = new MaintWebLink(_selectedCorp); newlink.ShowDialog(); DisplayData(); }