Skip to content
Snippets Groups Projects
Commit ab97a53d authored by Антон Кудряшов's avatar Антон Кудряшов
Browse files

- add power checking for source point

parent 334d5a7a
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
......@@ -287,9 +287,14 @@ namespace MES_Wind
return rval;
}
// so, we start at source power Point
// so, we start at source power Point; actually call this foreach source point
public void checkPowerPoint(PowerPointObject sourcePoint)
{
if (!sourcePoint.powerIsON) {
// so we have source without power
MessageBox.Show("checkPowerPoint called with disabled source point");
return;
}
// looking for unbroken lines and switch power for this point
foreach (PowerLineObject line in sourcePoint.lines) {
if (!line.broken && !line.toPoint.powerIsON) {
......
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment