public Atom.Status AtomsStatusGet() { Atom.Status eRetVal = Atom.Status.Unknown; foreach (Atom cAtom in _aAtoms) { try { if (Atom.Status.Error == cAtom.eStatus) { return(Atom.Status.Error); } if (Atom.Status.Unknown == eRetVal) { eRetVal = cAtom.eStatus; } else if (cAtom.eStatus != eRetVal) { return(_ePreviousStatus); } } catch (Exception ex) { (new Logger()).WriteError(ex); return(Atom.Status.Error); } } return(_ePreviousStatus = eRetVal); }
public Atom.Status AtomsStatusGet() { Atom.Status eRetVal = Atom.Status.Unknown; foreach (Atom cAtom in _aAtoms) { try { if (Atom.Status.Error == cAtom.eStatus) return Atom.Status.Error; if (Atom.Status.Unknown == eRetVal) eRetVal = cAtom.eStatus; else if (cAtom.eStatus != eRetVal) return _ePreviousStatus; } catch (Exception ex) { (new Logger()).WriteError(ex); return Atom.Status.Error; } } return _ePreviousStatus = eRetVal; }
public Template(string sFile) : base(sFile, COMMAND.unknown) { _ePreviousStatus = Atom.Status.Idle; }