Пример #1
0
		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;
		}
Пример #2
0
        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);
        }
Пример #3
0
        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);
            }
        }
Пример #4
0
 private void listViewInputEffectMap_SelectedIndexChanged(object sender, EventArgs e)
 {
     _SelectedInputEffectMap = listViewInputEffectMap.SelectedItems.Count == 1
                                                 ? listViewInputEffectMap.SelectedItems[0].Tag as InputEffectMap
                                                 : null;
 }
Пример #5
0
		private void listViewInputEffectMap_SelectedIndexChanged(object sender, EventArgs e)
		{
			_SelectedInputEffectMap = listViewInputEffectMap.SelectedItems.Count == 1
			                          	? listViewInputEffectMap.SelectedItems[0].Tag as InputEffectMap
			                          	: null;
		}