private int WaitTimeOut = 10; //Задержка чтения ответа контроллера после запроса public PLCSocket(ProgramSettingsFeilds aPSF) { PSF = aPSF; FTryConnect = true; FConnected = false; FDisconnect = false; }
public void ReadFields() { if (File.Exists(XMLFileName)) { XmlSerializer ser = new XmlSerializer(typeof(ProgramSettingsFeilds)); TextReader reader = new StreamReader(XMLFileName); ProgSettFlds = ser.Deserialize(reader) as ProgramSettingsFeilds; reader.Close(); } }
public ProgramSettings() { ProgSettFlds = new ProgramSettingsFeilds(); }