beremiz

Fix exception when canvas becomes null because of window resize, and avoid useless parameter+condition in GetLogicalDC
<?xml version="1.0" encoding="UTF-8"?>
<BaseParams Name="py_ext_0" IEC_Channel="0"/>