public void setInstance(pipeHandler handler) { this.active = handler; this.titleLeft.GetComponent <Text>().text = active.getData().from.gameObject.name; this.titleRight.GetComponent <Text>().text = active.getData().to.gameObject.name; var data = active.getData(); drainAllLeft.GetComponent <Toggle>().isOn = data.drainAllLeft; drainallRight.GetComponent <Toggle>().isOn = data.drainAllRight; drainLeft.GetComponent <Toggle>().isOn = data.drainLeft; drainRight.GetComponent <Toggle>().isOn = data.drainRight; }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //The server now gets created here. pipeHandler pipe = new pipeHandler(); var proc = new Process(); proc.StartInfo.FileName = "cplpltestpipes.exe"; proc.Start(); //The server used to be created here. pipe.EstablishConnection(); Application.Run(new Form1(pipe)); }