blob: 34ca494d41d567b79056ae85bacaca8c957d805e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using disc1;
using disc1.XML;
using System.IO;
namespace MSDNForums
{
public class Output
{
int row;
int column;
List<Customer> person = new List<Customer>();
public int Row
{
get { return row; }
set { row = value; }
}
public int Column
{
get { return column; }
set { column = value; }
}
public List<Customer> Person
{
get { return person; }
set { person = value; }
}
public void Load(string path)
{
if (File.Exists(path))
{
Output o = ObjectXMLSerializer<Output>.Load(path);
this.row = o.row;
this.column = o.column;
this.person = o.person;
}
}
public void Save(string path)
{
ObjectXMLSerializer<Output>.Save(this, path);
}
}
}
|