public MainForm() { InitializeComponent(); powerComboBox.SelectedIndex = 0; channelComboBox.SelectedIndex = 0; RefreshButtonClick(this, EventArgs.Empty); _visualSource = new VisualSource(1); //_logger = new Logger(_visualSource, new ConnectionSimulator(10)); _logger = new Logger(_visualSource, new Connection()); _logger.UpdateStatus += LoggerUpdateStatus; }
public Logger(VisualSource vs, IConnection connection) { Connection = connection; _visualSource = vs; }