Beispiel #1
0
 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);
 }
Beispiel #2
0
		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;
		}
Beispiel #3
0
		public Template(string sFile)
            : base(sFile, COMMAND.unknown)
        {
			_ePreviousStatus = Atom.Status.Idle;
        }
Beispiel #4
0
 public Template(string sFile)
     : base(sFile, COMMAND.unknown)
 {
     _ePreviousStatus = Atom.Status.Idle;
 }