Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 public override IObservable <Event> Execute()
 {
     return(_input.Execute());
 }