private void MainWindow_OnInitialized(object sender, EventArgs e) { _provider = new ClientDbWorkProvider(Properties.Settings.Default.ClientDBConnectionString); LbLocalReports.ItemsSource = _provider.Reports; LbLocalReports.SelectedIndex = 0; _connectionManager = new ClientConnectionManager(_provider); _settingsWindow = new SettingsWindow(); _updateTimer = new DispatcherTimer(DispatcherPriority.Normal) { Interval = new TimeSpan(0, 0, 3) }; _updateTimer.Tick += updateTimer_Tick; _connectionManager.ResponceReceived += _connectionManager_ResponceReceived; _updateTimer.Start(); }
public ClientConnectionManager(ClientDbWorkProvider provider) { _dbprovider = provider; }