using System.Windows.Forms;
using System.ComponentModel;
namespace SysInfoLib
{
public class SysInfo: Component{
public SysInfo(){}
public string UserName
{
get
{
return SystemInformation.UserName;
}
}
public string ComputerName
{
get
{
return SystemInformation.ComputerName;
}
}
public string Network
{
get
{
if(SystemInformation.Network)
return "Connected";
else
return "Disconnected";
}
}
public string MonitorInfo
{
get
{
return SystemInformation.MonitorCount.ToString();
}
}
public string MouseInfo
{
get
{
if(SystemInformation.MousePresent)
{
return SystemInformation.MouseButtons.ToString() + " Button Mouse";
}
else
return "No Mouse Connected";
}
}
public string BootInfo
{
get
{
if(SystemInformation.BootMode==BootMode.Normal)
return "Normal";
else if(SystemInformation.BootMode==BootMode.FailSafe)
return "Started In Safe Mode";
else if(SystemInformation.BootMode==BootMode.FailSafeWithNetwork)
return "Started In Safe Mode with Network Support";
else
return "No info";
}
}
}
}
ovako nesto mislis ? samo napravi click-event i to je to mislim