public ChannelConfigUI(ChannelConfig.Channel channel) { ChannelName = channel.name; ChannelLevel = channel.level; ChannelGroup = channel.linkGroup; ChannelGroups = ChannelConfig.ChannelGroupChars; }
private void channelLevelChanged(object sender, EventArgs e) { ChannelConfig.Channel channel = sender as ChannelConfig.Channel; int index = MainWindow.instance.channelConfig.channels.IndexOf(channel); Dispatcher.Invoke(() => { faderBars[index].Value = channel.level; }); }