Ejemplo n.º 1
0
        /// <summary>
        /// Creates a garbage instruction.
        /// </summary>
        /// <param name="xn">The XML repersentation of the instruction to be created</param>
        /// <param name="con">The current context object</param>
        static Garbage CreateGarbage(XmlNode xn, Context con)
        {
            Garbage gc = CreateGarbage(xn);

            AddInstruction(xn, gc, con);
            return(gc);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a garbage instruction.
        /// </summary>
        /// <param name="xn">The XML repersentation of the instruction to be created</param>
        /// <returns>A Garbage intsruction</returns>
        static Garbage CreateGarbage(XmlNode xn)
        {
            Garbage gc   = new Garbage();
            string  rest = XmlFiler.getAttribute(xn, "wait");

            if (rest != null)
            {
                gc.Rest = Convert.ToInt32(rest);
            }
            return(gc);
        }
Ejemplo n.º 3
0
		/// <summary>
		/// Creates a garbage instruction.
		/// </summary>
		/// <param name="xn">The XML repersentation of the instruction to be created</param>
		/// <returns>A Garbage intsruction</returns>
		static Garbage CreateGarbage(XmlNode xn)
		{
			Garbage gc = new Garbage();
			string rest = XmlFiler.getAttribute(xn, "wait");
			if (rest != null) gc.Rest = Convert.ToInt32(rest);
			return gc;
		}