Пример #1
0
 public CCTalk()
 {
     error      = Error.getInstancia();
     factory    = new CashLib.Factory.FactoryDeviceCash();
     components = new MessageEventArgs();
     config     = new CCTalkConfig();
 }
Пример #2
0
 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());
     }
 }