reply
Add(EntryPoint,9540968,126,84)
{
}
Add(Inline,611696,273,84)
{
WorkPoints=#4:work|
EventPoints=#3:sss|
Code="private void doWork(object data, int index)
{
ManagementObjectSearcher s = new ManagementObjectSearcher("select * from win32_diskdrive");
foreach (ManagementObject drive in s.Get())
{
foreach (ManagementObject part in drive.GetRelated("Win32_DiskPartition"))
{
foreach (ManagementObject mapping in part.GetRelated("Win32_LogicalDisk"))
{
object dd = drive["model"];
sys.sss(mapping["Name"] +" * "+ part["index"] +" * "+ dd +" * "+ drive["size"] +" * "+ part["size"]);
}
}
}
}"
link(sss,5184481:doItems,[])
}
Add(ListBox,5184481,329,84)
{
Left=95
Top=25
Width=265
Height=220
Point(doItems)
}
Add(Using,7730511,273,42)
{
List="System.Management"
}
Add(Button,1765590,217,84)
{
Left=10
Top=25
ImageList=[]
Data=Integer(0)
Point(onClick)
link(onClick,611696:work,[])
}