Пример #1
0
 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") + ")";
 }
Пример #2
0
        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);
        }
Пример #3
0
 public SignalState(BasicSignal sig)
 {
     SigName = sig.Name;
     Value   = 1;
 }