public void AddFilter(string address) { try { AddressInstance instance; if (m_AddressLookup.TryGetValue(address, out instance) == true) { return; } DataGridViewRow row = m_DataView.Rows[m_DataView.Rows.Add(false, false, address, 0L, 0d)]; instance = new AddressInstance(address, row); m_AddressLookup.Add(address, instance); // set initial mute solo state SetMute(address, false); SetSolo(address, false); } catch (Exception ex) { // explicitly tell the user why the address failed to parse RC.WriteException(002, "Error parsing OSC address", ex); } finally { m_AddNewAddress.Set(); } }
private void Delete(string address) { AddressInstance instance = m_AddressLookup[address]; m_Muted.Remove(address); m_Soloed.Remove(address); m_AddressLookup.Remove(address); }
private void ToggleMute(string address) { AddressInstance instance = m_AddressLookup[address]; instance.Mute = !instance.Mute; if (instance.Mute == true) { if (m_Muted.Contains(address) == false) { m_Muted.Add(address); } } else { m_Muted.Remove(address); } }
private void SetMute(string address, bool value) { AddressInstance instance = m_AddressLookup[address]; instance.Mute = value; if (instance.Mute == true) { if (m_Muted.Contains(address) == false) { m_Muted.Add(address); } } else { m_Muted.Remove(address); } }
private void ToggleSolo(string address) { AddressInstance instance = m_AddressLookup[address]; instance.Solo = !instance.Solo; if (instance.Solo == true) { if (m_Soloed.Contains(address) == false) { m_Soloed.Add(address); } } else { m_Soloed.Remove(address); } }
public AddressInstance(AddressInstance @loadedInstance, DataGridViewRow row) { Address = @loadedInstance.Address; Row = row; }