Вверх ↑
Главный модератор
Ответов: 2999
Рейтинг: 396
#1: 2012-09-08 23:22:27 ЛС | профиль | цитата
Каков вопрос - таков и ответ.
reply2


Add(EntryPoint,9540968,98,105)
{
}
Add(Inline,611696,196,105)
{
WorkPoints=#4:work|
EventPoints=#3:sss|
Code="private void doWork(object data, int index)
{
ManagementObjectSearcher s = new ManagementObjectSearcher("root\CIMV2", "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"] + Environment.NewLine);
}
}
}
}"
link(sss,10917444:doAppendText,[])
}
Add(Using,7730511,196,63)
{
List="System.Management"
}
Add(Button,1765590,140,105)
{
Left=10
ImageList=[]
Data=Integer(0)
Point(onClick)
link(onClick,611696:work,[])
}
Add(TextBox,10917444,252,98)
{
Left=10
Top=25
Width=370
Height=235
Anchor=15
Multiline=0
AutoCompleteCustomSource=[]
Point(doText)
Point(doAppendText)
}
карма: 6
Дорогу осилит идущий. Install/Update HiAsm.NET
0