|
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
{
public partial class ipmonlist : Form
{
public int flag=0;
public ipmonlist(int i)
{
InitializeComponent();
flag = i;
}
private void button1_Click(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;
string[] pcn;
if (flag == 0)
{
keys = ipm.ipmon.ipnList.Keys;
pcn = ipm.ipmon.ipnList.ipname;
}
else
{
keys = ipm.ipmon.ipxList.Keys;
pcn = ipm.ipmon.ipxList.ipname;
}
int k = 0;
if (keys.Length > 1)
k = keys.Length - 1;
for (int i = 0; i < keys.Length; i++)
{
this.id.Text += keys[i] + " " + pcn[i] + ",\t\n";
}
}
}
}
|
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.