public MainWindowViewModel() { ConnectionProvider connProvider = new ConnectionProvider(); connProvider.ConectedEvent += ConnectionCompleted; connProvider.ConnectRun(); }