Click here to Skip to main content
12,351,853 members (32,414 online)
Click here to Skip to main content

Stats

37.1K views
1.9K downloads
16 bookmarked
Posted

Expression Control for TFS Work Items

, 5 Oct 2010 CPOL
Custom control for TFS Work Items that shows the result of calculating an expression based on the work item fields contents
using System;

namespace Evaluant.Calculator.Domain
{
	public class Value : LogicalExpression
	{
        public Value(string text, ValueType type)
        {
            this.text = text;
            this.type = type;
        }

		private string text;
		
		public string Text
		{
			get { return text; }
			set { text = value; }
		}

        private ValueType type;

        public ValueType Type
		{
			get { return type; }
			set { type = value; }
		}

        public override void Accept(LogicalExpressionVisitor visitor)
        {
            visitor.Visit(this);
        }
    }

	public enum ValueType
	{
		Integer,
		String,
		DateTime,
		Float,
		Boolean
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

konamiman.MSX
Software Developer SunHotels
Spain Spain
Under the secret identity of a C# programmer, a freaky guy who loves MSX computers and japanese culture is hidden. Beware!

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 6 Oct 2010
Article Copyright 2010 by konamiman.MSX
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid