private void btnStart_Click(object sender, EventArgs e) { uclConsole.Clear(); try { _input = uclInput.GetInput(); if (_input != null) { Console.WriteLine("Starting..."); Subscribe(_input.Execute(), OutputToConsole); Console.WriteLine("Started"); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public override IObservable <Event> Execute() { return(_input.Execute()); }