private void dgMaps_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 2) { FormMapProperties dlg = new FormMapProperties( null, _maps[e.RowIndex], _maps[e.RowIndex].Display); dlg.ShowDialog(); } }
public void OnEvent(object element, object parent) { if (_doc == null || !(_doc.Application is IMapApplication) || !(element is IMap)) { return; } FormMapProperties dlg = new FormMapProperties( (IMapApplication)_doc.Application, (IMap)element, ((IMap)element).Display); dlg.ShowDialog(); }
public Task <bool> OnEvent(object element, object parent) { if (_doc == null || !(_doc.Application is IMapApplication) || !(element is IMap)) { return(Task.FromResult(true)); } FormMapProperties dlg = new FormMapProperties( (IMapApplication)_doc.Application, (IMap)element, ((IMap)element).Display); dlg.ShowDialog(); return(Task.FromResult(true)); }