Esempio n. 1
0
        public override bool SetProperty(string propertyName, string value, string[] source, ref int line)
        {
            switch (propertyName)
            {
            case "Name":
                m_name = value;
                break;

            case "Comment":
                m_comment = Parser.ParseComment(value, source, ref line);
                break;

            case "Category Entry":
                CategoryEntry category = new CategoryEntry();
                category.Parse(source, ref line, OwnerProject);
                break;

            case "Sound Entry":
                WorkspaceSoundEntry sound = new WorkspaceSoundEntry();
                sound.Parse(source, ref line, OwnerProject);
                break;

            default:
                return(false);
            }

            return(true);
        }
Esempio n. 2
0
		public override bool SetProperty( string propertyName, string value, string[] source, ref int line )
		{
			switch ( propertyName )
			{
				case "Name":
					m_name = value;
					break;

				case "Comment":
					m_comment = Parser.ParseComment( value, source, ref line );
					break;

				case "Category Entry":
					CategoryEntry category = new CategoryEntry();
					category.Parse( source, ref line, OwnerProject );
					break;

				case "Sound Entry":
					WorkspaceSoundEntry sound = new WorkspaceSoundEntry();
					sound.Parse( source, ref line, OwnerProject );
					break;

				default:
					return false;
			}

			return true;
		}