-
Notifications
You must be signed in to change notification settings - Fork 2
/
ConfigPage.cs
59 lines (49 loc) · 2.01 KB
/
ConfigPage.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using HSPI_AKTemplate;
namespace HSPI_AKExample
{
using HSDevice = Scheduler.Classes.DeviceClass;
using DeviceDict = Dictionary<int, DeviceBase>;
class ConfigPage : PageBuilder
{
private static string pageName = "Config";
/// <summary>
/// Initializes a new instance of the <see cref="ConfigPage"/> class.
/// Assume Controller.UpdateConfiguration() was called by plugin already
/// Also RegisterConfigLink for "manage Interfaces" page
/// </summary>
/// <param name="plugin">The HomeSeer plugin.</param>
public ConfigPage(HSPI plugin) : base(pageName, plugin, config:true)
{
this.suppressDefaultFooter = true;
}
/// <summary>
/// Return HTML representation of the page
/// </summary>
/// <param name="queryPairs">See TableBuilder.BuildHeaderLink for queryString format</param>
/// <returns></returns>
public override string BuildContent(NameValueCollection queryPairs = null)
{
var stb = new StringBuilder();
// See TableBuilder.BuildHeaderLink for queryString format
//BuildTable_Info(stb, queryPairs.Get("sortby"), queryPairs.Get("sortorder"));
// Stop timer
long dur = duration;
return stb.ToString();
}
//private void BuildTable_Info(StringBuilder stb, string sortby = null, string sortorder = null)
//{
// ConfigDevice.BuildTable_Info( stb,
// ((HSPI)plugin).controller.UsedDevices,
// page_name: page_link,
// sortby: sortby,
// sortorder: sortorder,
// inSlider: false
// );
//}
}
}