public FView(L_WindowLPars _Wins, SignalList _SL, SignalsPanelPars _SignalsPanel) { InitializeComponent(); Wins = _Wins; SL = _SL; SignalsPanel = _SignalsPanel; }
public void Init(SignalList _SL, int _PanelWidth, bool _PanelsDefault) { Clear(); SL = _SL; foreach (Signal p in _SL) { if (p.input) { UCSignalIn pi = new UCSignalIn(p); pi.alive = false; pi.Width = _PanelWidth; Controls.Add(pi); } else { UCSignalOut po = new UCSignalOut(p); po.alive = IsAlive; po.Width = _PanelWidth; Controls.Add(po); } } timer1.Start(); if (_PanelsDefault) { SetPanelsDefault(); } else { SetPanels(); } }