private ListViewItem _CreateInputEffectMapItem(InputEffectMap inputEffectMap) { string effectName = _EffectName(inputEffectMap.EffectModuleId); string parameterName = _EffectParameterName(inputEffectMap.EffectModuleId, inputEffectMap.InputValueParameterIndex); ListViewItem item = new ListViewItem(new[] {effectName, parameterName}); item.Tag = inputEffectMap; return item; }
private ListViewItem _CreateInputEffectMapItem(InputEffectMap inputEffectMap) { string effectName = _EffectName(inputEffectMap.EffectModuleId); string parameterName = _EffectParameterName(inputEffectMap.EffectModuleId, inputEffectMap.InputValueParameterIndex); ListViewItem item = new ListViewItem(new[] { effectName, parameterName }); item.Tag = inputEffectMap; return(item); }
private void buttonAddInputEffect_Click(object sender, EventArgs e) { if (!_Validate()) { return; } try { InputEffectMap inputEffectMap = _EditingMap; _maps.Add(inputEffectMap); _RefreshInputEffectList(); } catch (Exception ex) { MessageBox.Show(ex.Message, "", MessageBoxButtons.OK, MessageBoxIcon.Stop); } }
private void listViewInputEffectMap_SelectedIndexChanged(object sender, EventArgs e) { _SelectedInputEffectMap = listViewInputEffectMap.SelectedItems.Count == 1 ? listViewInputEffectMap.SelectedItems[0].Tag as InputEffectMap : null; }