// BGMPlayer private void BGMPlayer_ControlGrid_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == BGMPlayer_ColumnSetting.Index) { var handleID = (SyncBGMPlayer.SoundHandleID)BGMPlayer_ControlGrid[BGMPlayer_ColumnContent.Index, e.RowIndex].Value; using (var dialog = new DialogConfigurationBGMPlayer(BGMHandles[handleID])) { if (dialog.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { BGMHandles[handleID] = dialog.ResultHandle; } } UpdateBGMPlayerUI(); } }
// BGMPlayer private void BGMPlayer_ControlGrid_CellContentClick( object sender, DataGridViewCellEventArgs e ) { if ( e.ColumnIndex == BGMPlayer_ColumnSetting.Index ) { var handleID = (SyncBGMPlayer.SoundHandleID)BGMPlayer_ControlGrid[BGMPlayer_ColumnContent.Index, e.RowIndex].Value; using ( var dialog = new DialogConfigurationBGMPlayer( BGMHandles[handleID] ) ) { if ( dialog.ShowDialog( this ) == System.Windows.Forms.DialogResult.OK ) { BGMHandles[handleID] = dialog.ResultHandle; } } UpdateBGMPlayerUI(); } }