Exemplo n.º 1
0
        private void loadKingdoms(MBKingdoms kingdoms)
        {
            this.kingdoms = kingdoms;

            treeView1.Nodes.Clear();
            foreach (var kingdom in kingdoms.Kingdoms)
            {
                treeView1.Nodes.Add(kingdom.name);
            }
        }
Exemplo n.º 2
0
        public ucKingdomEditor(AMProject project, MBKingdoms kingdoms)
        {
            InitializeComponent();
            this.kingdoms = kingdoms;

            factionListCtrl = new ucKingdomsList(kingdoms);
            factionListCtrl.SelectKingdomChanged += FactionList_SelectKingdomChanged;
            panel1.Controls.Clear();
            panel1.Controls.Add(factionListCtrl);
            factionListCtrl.Dock = DockStyle.Fill;
            this.project         = project;
        }
Exemplo n.º 3
0
 public ucKingdomsList(MBKingdoms kingdoms)
 {
     this.kingdoms = kingdoms;
     InitializeComponent();
     loadKingdoms();
 }
Exemplo n.º 4
0
 public ucKingdomList(MBKingdoms kingdoms)
 {
     InitializeComponent();
     loadKingdoms(kingdoms);
 }