2
다음은 저장시 남은 설정 파일입니다. (속성을 올바르게 작동합니다 저장.)Properties.Settings에서 ArrayList로로드 하시겠습니까?
<setting name="AlarmList" serializeAs="Xml">
<value>
<ArrayOfAnyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<anyType xsi:type="ArrayOfAnyType">
<anyType xsi:type="xsd:dateTime">2009-12-04T02:00:00</anyType>
<anyType xsi:type="xsd:string">string1</anyType>
<anyType xsi:type="xsd:string">string2</anyType>
</anyType>
<anyType xsi:type="ArrayOfAnyType">
<anyType xsi:type="xsd:dateTime">2009-12-04T03:00:00</anyType>
<anyType xsi:type="xsd:string">string1</anyType>
<anyType xsi:type="xsd:string">string2</anyType>
</anyType>
</ArrayOfAnyType>
</value>
어떻게 ArrayList의를 사용하여 응용 프로그램에 다시이 문제를로드 할 수 있습니다? 이것은 저장 한 방법입니다.
ArrayList list = new ArrayList();
list.Add(SetAlarm.Value);
list.Add("string1");
list.Add("string2");
Settings.AlarmList2.Add(list);
Settings.Save();
누구나 설정에서 데이터를로드하는 데 사용할 수있는 방법을 알고 계십니까?
.NET 1.1 또는 2.0 또는 3.5? – Fredou
.net 3.5 C를 사용하여 # – Kevin