Ejemplo n.º 1
0
        private void mainFrm_Load(object sender, EventArgs e)
        {
            pCanvas1.BackColor = Color.Black;
            factions           = new FactionSql();
            systems            = new SystemsSql();
            sectors            = new SectorsSql();
            baseAssets         = new BaseAssetSQL();
            mobs = new MobsSQL();

            TreeWindow treeWindow = new TreeWindow(systems.getSystemTable(), sectors.getSectorTable());

            treeView1.Nodes.AddRange(treeWindow.setupInitialTree());

            HE_GlobalVars._ListofFactions = new string[factions.getFactionTable().Rows.Count + 1];
            int factionCount = 1;

            HE_GlobalVars._ListofFactions[0] = "None";
            DataTable factionTmp = factions.getFactionTable();

            foreach (DataRow r in factionTmp.Rows)
            {
                HE_GlobalVars._ListofFactions[factionCount] = r["name"].ToString();
                factionCount++;
            }
        }
Ejemplo n.º 2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     pCanvas1.BackColor = Color.Black;
     Systems systems = new Systems();
     Sectors sectors = new Sectors();
     TreeWindow treeWindow = new TreeWindow(systems.getSystemTable(), sectors.getSectorTable());
     treeView1.Nodes.AddRange(treeWindow.setupInitialTree());
 }
Ejemplo n.º 3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            pCanvas1.BackColor = Color.Black;
            Systems    systems    = new Systems();
            Sectors    sectors    = new Sectors();
            TreeWindow treeWindow = new TreeWindow(systems.getSystemTable(), sectors.getSectorTable());

            treeView1.Nodes.AddRange(treeWindow.setupInitialTree());
        }