forked from Excel-DNA/Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddInReloaderConfiguration.cs
More file actions
40 lines (36 loc) · 1.01 KB
/
Copy pathAddInReloaderConfiguration.cs
File metadata and controls
40 lines (36 loc) · 1.01 KB
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
using ExcelDna.Integration;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
namespace AddInReloader
{
// ---------------------------------------------------------------------------------------------------
// Configuration types
[Serializable]
[XmlType(AnonymousType = true)]
[XmlRoot(Namespace = "", IsNullable = false)]
public class AddInReloaderConfiguration
{
[XmlElement("WatchedAddIn", typeof(WatchedAddIn))]
public List<WatchedAddIn> WatchedAddIns { get; set; }
}
[Serializable]
public class WatchedAddIn
{
[XmlAttribute]
public string Path { get; set; }
[XmlElement("WatchedFile", typeof(WatchedFile))]
public List<WatchedFile> WatchedFiles { get; set; }
}
[Serializable]
public class WatchedFile
{
[XmlAttribute]
public string Path { get; set; }
}
}