Пример #1
0
		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
		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;
		}