Пример #1
0
 public ucNPCCharacterListEdit(MBNPCCharacters characters)
 {
     InitializeComponent();
     ucNPCCharacterList = new ucNPCCharacterList(characters);
     ucNPCCharacterList.SelectNPCCharacterChanged += UcNPCCharacterList_SelectNPCCharacterChanged;
     panel2.Controls.Clear();
     panel2.Controls.Add(ucNPCCharacterList);
     ucNPCCharacterList.Dock = DockStyle.Fill;
     state = AddEditState.View;
 }
        public ucNPCCharacterEditor(AMProject project, MBNPCCharacters characters)
        {
            InitializeComponent();
            this.characters = characters;

            trooperListCtrl = new ucNPCCharacterListEdit(characters);
            trooperListCtrl.SelectNPCCharacterChanged += NpcListCtrl_SelectNPCCharacterChanged;
            panel1.Controls.Clear();
            panel1.Controls.Add(trooperListCtrl);
            trooperListCtrl.Dock = DockStyle.Fill;
            this.project         = project;
        }
 public ucNPCCharacterList(MBNPCCharacters npcCharacters)
 {
     InitializeComponent();
     this.npcCharacters = npcCharacters;
     loadNPCCharacters();
 }