Esempio n. 1
0
 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();
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public SignalState(MultiplexedSignal sig, int value)
 {
     SigName = sig.Name;
     Value   = value;
 }