/// <summary> /// すべてのアイテムをセット /// </summary> private void uctlListEditor_RequestAddItemAll(object sender, CtrlComponent.Common.ctlListEditor.RequestAddItemAllEventArgs e) { foreach (var item in this.cmbDBItem.Items) { var newItem = new ListViewItem(((DBListType)item).Key); newItem.SubItems.Add(this.numValue.Value.ToString()); e.Items.Add(newItem); } }
/// <summary> /// パーティキャラ全員をセット /// </summary> private void uctlPartyEditor_RequestAddItemAll(object sender, CtrlComponent.Common.ctlListEditor.RequestAddItemAllEventArgs e) { foreach (var item in this.cmbDBChar.Items) { var newItem = new ListViewItem(((DBListType)item).Value.ToString()); newItem.SubItems.Add(Database.GetIDFromIDName(((DBListType)item).Key).ToString()); newItem.SubItems.Add(Database.GetNameFromIDName(((DBListType)item).Key).ToString()); newItem.SubItems.Add(((int)this.numLevel.Value).ToString()); e.Items.Add(newItem); } this.uctlPartyEditor.SortList(); }