예제 #1
0
파일: Event.cs 프로젝트: GlennSandoval/JSIL
		public override bool SetProperty( string propertyName, string value, string[] source, ref int line )
		{
			switch ( propertyName )
			{
				case "Data":
					m_data = Parser.ParseInt( value, line );
					break;

				case "Recurrence":
					m_recurrence = new Recurrence();
					m_recurrence.Parse( source, ref line, OwnerProject );
					break;

				default:
					return base.SetProperty( propertyName, value, source, ref line );
			}

			return true;
		}
예제 #2
0
파일: Event.cs 프로젝트: GlennSandoval/JSIL
		public override bool SetProperty( string propertyName, string value, string[] source, ref int line )
		{
			switch ( propertyName )
			{
				case "Ramp":
					m_ramp = new Ramp();
					m_ramp.Parse( source, ref line, OwnerProject );
					break;

				case "Equation":
					m_equation = new Equation();
					m_equation.Parse( source, ref line, OwnerProject );
					break;

				case "Recurrence":
					m_recurrence = new Recurrence();
					m_recurrence.Parse( source, ref line, OwnerProject );
					break;

				default:
					return base.SetProperty( propertyName, value, source, ref line );
			}

			return true;
		}