public EditMultSignal(MultiplexedSignal sig) { signal = sig; InitializeComponent(); bitSelect.Value = signal.Bits; offsetSelect.Value = signal.Offset; nameBox.Text = signal.SubSignals[0].Name; fullNameBox.Text = signal.SubSignals[0].FullName; multNameBox.Text = signal.Name; UpdateList(); }
private void mulButton_Click(object sender, EventArgs e) { if (Program.signals[chip] == null) { Program.signals[chip] = new List <Signal>(); } var sig = new MultiplexedSignal(); sig.Chip = chip; Program.signals[chip].Add(sig); new EditMultSignal(sig).ShowDialog(this); }
public SignalState(MultiplexedSignal sig, int value) { SigName = sig.Name; Value = value; }