public EditSignal(BasicSignal sig) { signal = sig; InitializeComponent(); nameBox.Text = signal.Name; fullNameBox.Text = signal.FullName; bitSelect.Value = signal.Bit; invBox.Checked = signal.Inverted; bitLabel.Text = "(0x" + (1 << (int)bitSelect.Value).ToString("X2") + ")"; }
private void addButton_Click(object sender, EventArgs e) { if (Program.signals[chip] == null) { Program.signals[chip] = new List <Signal>(); } var sig = new BasicSignal(); sig.Chip = chip; Program.signals[chip].Add(sig); new EditSignal(sig).ShowDialog(this); }
public SignalState(BasicSignal sig) { SigName = sig.Name; Value = 1; }