private void SetExtractSolBase(NkSoldierInfo solInfo, bool baseSolSetting, List <NkSoldierInfo> selectedDummySoldierList) { this.m_SolExtract.Clear(); this.m_SolExtract.Add(solInfo.GetSolID()); NewListBox listBox = this.GetListBox(); listBox.Clear(); if (baseSolSetting && selectedDummySoldierList != null) { foreach (NkSoldierInfo current in selectedDummySoldierList) { if (current != null) { listBox.Add(this.GetExtracteSolItem(current)); } } } base.ShowExtractSol(baseSolSetting); this.CalcDummyExtractData(solInfo); listBox.RepositionItems(); }
public void SetMySolList(ref NewListBox mySolKindListBox, ref List <NkSoldierInfo> solList) { if (solList == null) { return; } mySolKindListBox.Clear(); if (solList.Count == 0) { return; } foreach (NkSoldierInfo current in solList) { if (current != null) { NewListItem item = new NewListItem(mySolKindListBox.ColumnNum, true, string.Empty); this.SetMyCharListBoxItem(ref item, current); mySolKindListBox.Add(item); } } mySolKindListBox.RepositionItems(); }