// private void MainUI_Load(object sender, EventArgs e) { IDT = new InternalDataTransfer(); TicTacToeSim = new TicTacToe(); CurrentSim = TicTacToeSim; CC = new CommunicationCenter(IDT, CurrentSim, this); Subscribe(CC); // CC.LoadSimulation("Simulator.cs", ""); // This is how to setup methods with reflection //object[] test3 = { 1 }; //Type test = GetType(); //Dictionary<int, MethodInfo> temp = new Dictionary<int, MethodInfo>(); //temp.Add(1, test.GetMethod("printString")); //label1.Text = (string)temp[1].Invoke(this, test3);// new object[] { 1 }); }
public void SetSim(TicTacToe Sim) { this.Sim = Sim; }