public CCTalk() { error = Error.getInstancia(); factory = new CashLib.Factory.FactoryDeviceCash(); components = new MessageEventArgs(); config = new CCTalkConfig(); }
public bool validateConfigDevices() { try { BinaryFormatter formated = new BinaryFormatter(); Stream file = new FileStream("configDevices.cash", FileMode.Open, FileAccess.Read, FileShare.None); this.config = (CCTalkConfig)formated.Deserialize(file); file.Close(); return(this.config.validateConfiguration()); } catch (IOException ex) { return(this.config.validateConfiguration()); } }