|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace internet_magic
{
/// <summary>
/// Windows form class for Registered IP GUI.
/// </summary>
public partial class iplistall : Form
{
/// <summary>
/// Initialise an instance of Registered IP GUI.
/// </summary>
public iplistall(Program parent)
{
m_Parent = parent;
InitializeComponent();
}
/// <summary>
/// Gets the parent object of this ProxyConfig class.
/// </summary>
/// <value>An instance of the Proxy class.</value>
public Program prx
{
get
{
return m_Parent;
}
}
/// <summary>Holds the value of the Parent property.</summary>
private Program m_Parent;
private void iplistall_Load(object sender, EventArgs e)
{
string dir = Environment.CurrentDirectory;
if (!dir.Substring(dir.Length - 1, 1).Equals(@"\"))
dir += @"\";
int_magic ipm = new int_magic(dir + "IPmon.xml");
if (System.IO.File.Exists(ipm.ipmon.File))
ipm.ipmon.LoadData();
string[] keys = prx.Config.ipList.Keys;
string[] hrs = prx.Config.ipList.Hrs;
int k = 0;
for (int i = 0; i < keys.Length; i++)
{
string[] myItems = new string[] { keys[i],ipm.ipmon.ipxList.ipPresent(keys[i]), hrs[i] };
ListViewItem lvi = new ListViewItem(myItems);
listView1.Items.Add(lvi);
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.