static void startApp(string path) { Config cfg = new Config(path + "/config.dat"); AddressList adr = new AddressList(path + "/addresslist.txt"); GameRunner gr = new GameRunner(path); FormConfig mainForm = new FormConfig(); mainForm.setConfig(cfg); mainForm.setAddressList(adr); mainForm.setGameRunner(gr); Application.Run(mainForm); }
public void setGameRunner(GameRunner gr) { this.gr = gr; }