示例#1
0
文件: Form1.cs 项目: hwaqar44/Chat
        //delegate void SetTextCallback();

        // Constructor
        public Form1()
        {
            InitializeComponent();
            simulation = new CSimulationManager(this);
            dataGridView1.DataSource = simulation.Users;

            // Getting the information/debugging messages
            simulation.federate.StatusMessageChanged += new EventHandler(CChatFd_StatusMessageChanged);
            simulation.federate.LogLevel              = Racon.LogLevel.ALL;
            simulation.federate.FederateStateChanged += Federate_FederateStateChanged;
        }
示例#2
0
 public CChatFd(CSimulationManager parent)
     : this()
 {
     // Set simulation manager
     simManager = parent;
 }