private void addToMapToolStripMenuItem_Click(object sender, EventArgs e) { if (grdData.SelectedRows.Count < 1) { return; } if (grdData.SelectedRows[0].DataBoundItem is GridViewGCDProjectItem) { GridViewGCDProjectItem propItem = (GridViewGCDProjectItem)grdData.SelectedRows[0].DataBoundItem; ProjectManager.AddNewProjectItemToMap(propItem.ProjectItem); } }
private void rasterPropertiesToolStripMenuItem_Click(object sender, EventArgs e) { if (grdData.SelectedRows.Count < 1) { return; } if (grdData.SelectedRows[0].DataBoundItem is GridViewGCDProjectItem) { GridViewGCDProjectItem propItem = (GridViewGCDProjectItem)grdData.SelectedRows[0].DataBoundItem; SurveyLibrary.frmSurfaceProperties frm = new SurveyLibrary.frmSurfaceProperties((GCDProjectRasterItem)propItem.ProjectItem, false); frm.ShowDialog(); } }