예제 #1
0
        public ServerStatusForm(LedConfiguration ledConfiguration)
        {
            InitializeComponent();

            Guard.NotNullOrEmpty(ledConfiguration);

            presenter = new ServerStatusPresenter(this, ledConfiguration);
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ServerStatusControl"/> class.
 /// </summary>
 public ServerStatusControl()
 {
     this.InitializeComponent();
     this._presenter      = new ServerStatusPresenter(this);
     this._timer          = new Timer(1000);
     this._timer.Elapsed += this.Timer_Elapsed;
     this._timer.Start();
 }