/// <summary> /// When the user double clicks the cell then we should display the detailed /// symbology dialog. /// </summary> /// <param name="sender">Sender that raised the event.</param> /// <param name="e">The event args.</param> private void DgvCategoriesCellDoubleClick(object sender, DataGridViewCellEventArgs e) { int count = _newScheme.Categories.Count; if (e.ColumnIndex == 0 && e.RowIndex < count) { _dblClickEditIndex = e.RowIndex; _tabColorDialog = new TabColorDialog(); _tabColorDialog.ChangesApplied += TabColorDialogChangesApplied; _tabColorDialog.StartColor = _newScheme.Categories[_dblClickEditIndex].LowColor; _tabColorDialog.EndColor = _newScheme.Categories[_dblClickEditIndex].HighColor; _tabColorDialog.Show(ParentForm); } }
/// <summary> /// When the user double clicks the cell then we should display the detailed /// symbology dialog /// </summary> private void DgvCategoriesCellDoubleClick(object sender, DataGridViewCellEventArgs e) { int count = _newScheme.Categories.Count; if (e.ColumnIndex == 0 && e.RowIndex < count) { _dblClickEditIndex = e.RowIndex; _tabColorDialog = new TabColorDialog(); _tabColorDialog.ChangesApplied += TabColorDialogChangesApplied; _tabColorDialog.StartColor = _newScheme.Categories[_dblClickEditIndex].LowColor; _tabColorDialog.EndColor = _newScheme.Categories[_dblClickEditIndex].HighColor; _tabColorDialog.Show(ParentForm); } }