예제 #1
0
        private void OnAdmin(object sender, RoutedEventArgs e)
        {

            if (outputAdmin!=null)
            {
                //FIX IT FIT IT VIK new AdminWindow == this
                
                SimulationConsoleWindow console = new SimulationConsoleWindow(outputAdmin, this);
                console.Title = "Agent Console";
                console.Show();
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("Cannot connect to the simulation! Check if simulation and proxy are running.");
            }
        }
예제 #2
0
 private void OnAgent(object sender, RoutedEventArgs e)
 {
     StreamWriter sst;
     StreamReader ssi;
     if (Connect("localhost", 7100, out sst, out ssi))
     {
         
         SimulationConsoleWindow console = new SimulationConsoleWindow(sst, this);
         console.Title = "Agent Console";
         console.Show();
     }
     else
     {
         System.Windows.Forms.MessageBox.Show("Cannot connect to the simulation! Check if simulation and proxy are running.");
     }
 }