Exemple #1
0
        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 setAddressList(AddressList adl)
 {
     this.adl = adl;
     //temp
     string[] ad = adl.getAddresses();
     for (int i = 0; i < ad.Length; i++)
     {
         this.cb_ips.Items.Add(ad[i]);
     }
     if (ad.Length > 0)
     {
         this.cb_ips.SelectedIndex = 0;
     }
 }