-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInvokeProperties.cs
43 lines (38 loc) · 1.03 KB
/
InvokeProperties.cs
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
namespace WebServiceStudio
{
using System;
using System.Collections;
using System.ComponentModel;
using System.Xml.Serialization;
[TypeConverter(typeof(ExpandableObjectConverter))]
public class InvokeProperties
{
private ArrayList uris = new ArrayList();
public void AddUri(string uri)
{
this.uris.Remove(uri);
this.uris.Insert(0, uri);
Configuration.SaveMasterConfig();
}
public override string ToString()
{
return "";
}
[XmlArrayItem("Uri", typeof(string)), Browsable(false)]
public string[] RecentlyUsedUris
{
get
{
return (this.uris.ToArray(typeof(string)) as string[]);
}
set
{
this.uris.Clear();
if (value != null)
{
this.uris.AddRange(value);
}
}
}
}
}