Exemplo n.º 1
0
        internal void OnAdmin(object sender, RoutedEventArgs e)
        {

            if (outputAdmin != null)
            {
                SimulationConsoleWindow console = new SimulationConsoleWindow(outputAdmin);
                //TODO: event wiring up
                console.Title = "Agent Console";
                console.Show();
            }
            else
            {
                MessageBox.Show("Cannot connect to the simulation! Check if simulation and proxy are running.");
            }
        }
Exemplo n.º 2
0
        internal void OnAgent(object sender, RoutedEventArgs e)
        {
            StreamWriter sst;
            StreamReader ssi;
            if (Connect("localhost", 7100, out sst, out ssi))
            {

                SimulationConsoleWindow console = new SimulationConsoleWindow(sst);
                console.Title = "Agent Console";
                console.Show();
            }
            else
            {
                System.Windows.MessageBox.Show("Cannot connect to the simulation! Check if simulation and proxy are running.");
            }
        }