Server.Gumps.SetTimeSpanGump.SetTimeSpanGump C# (CSharp) Méthode

SetTimeSpanGump() public méthode

public SetTimeSpanGump ( PropertyInfo prop, Server.Mobile mobile, object o, Stack stack, int page, ArrayList list ) : System
prop System.Reflection.PropertyInfo
mobile Server.Mobile
o object
stack System.Collections.Stack
page int
list System.Collections.ArrayList
Résultat System
		public SetTimeSpanGump( PropertyInfo prop, Mobile mobile, object o, Stack stack, int page, ArrayList list ) : base( GumpOffsetX, GumpOffsetY )
		{
			m_Property = prop;
			m_Mobile = mobile;
			m_Object = o;
			m_Stack = stack;
			m_Page = page;
			m_List = list;

			TimeSpan ts = (TimeSpan)prop.GetValue( o, null );

			AddPage( 0 );

			AddBackground( 0, 0, BackWidth, BackHeight, BackGumpID );
			AddImageTiled( BorderSize, BorderSize, TotalWidth - (OldStyle ? SetWidth + OffsetSize : 0), TotalHeight, OffsetGumpID );

			AddRect( 0, prop.Name, 0, -1 );
			AddRect( 1, ts.ToString(), 0, -1 );
			AddRect( 2, "Zero", 1, -1 );
			AddRect( 3, "From H:M:S", 2, -1 );
			AddRect( 4, "H:", 3, 0 );
			AddRect( 5, "M:", 4, 1 );
			AddRect( 6, "S:", 5, 2 );
		}