public ServerStatusForm(LedConfiguration ledConfiguration) { InitializeComponent(); Guard.NotNullOrEmpty(ledConfiguration); presenter = new ServerStatusPresenter(this, ledConfiguration); }
/// <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(); }