using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Trigger.Classes.Device;
namespace Trigger.Status
{
///
/// Provides methods to examine the status of the system regarding devices
///
public static class Device
{
///
/// Gets all available disks on the system
///
public static List AvailableDisks
{
get
{
return StorageDisk.GetAvailableDisks();
}
}
///
/// Gets the status related to devices
///
///
public static TreeNode GetStatus()
{
List availableDisks = AvailableDisks;
TreeNode tnMain = new TreeNode("Device (" + availableDisks.Count + ")");
availableDisks.ForEach(new Action(sd => tnMain.Nodes.Add(sd.ToString())));
return tnMain;
}
}
}