示例#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();
 }
示例#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);
        }
示例#3
0
 public SignalState(MultiplexedSignal sig, int value)
 {
     SigName = sig.Name;
     Value   = value;
 }