예제 #1
0
 public FView(L_WindowLPars _Wins, SignalList _SL, SignalsPanelPars _SignalsPanel)
 {
     InitializeComponent();
     Wins         = _Wins;
     SL           = _SL;
     SignalsPanel = _SignalsPanel;
 }
예제 #2
0
파일: UCSignals.cs 프로젝트: andreyV512/rag
 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();
     }
 }